using UnityEngine; namespace Pathfinding { public static class MathHelper { public static Vector3 ToUnityV3(this PF.Vector3 v3) { return new Vector3(v3.x, v3.y, v3.z); } public static PF.Vector3 ToPFV3(this Vector3 v3) { return new PF.Vector3(v3.x, v3.y, v3.z); } public static PF.Vector2 ToV2(this PF.Vector3 v3) { return new PF.Vector2(v3.x, v3.y); } public static Vector2 ToUnityV2(this PF.Vector2 v2) { return new Vector3(v2.x, v2.y); } public static PF.Vector2 ToPFV2(this Vector2 v2) { return new PF.Vector2(v2.x, v2.y); } } }