public override bool Equals(object obj) { if (obj == null) { return(false); } NodeAbstract p = obj as NodeAbstract; if (p == null) { return(false); } return((_x == p._x) && (_y == p._y) && (_z == p._z)); }
public static bool PositionEqualXZ(NodeAbstract a, NodeAbstract b, float maxDifY) { return(a.positionV2 == b.positionV2 && Math.Abs(a.y - b.y) < maxDifY); }
public static bool PositionEqualXZ(NodeAbstract a, Vector3 b, float maxDifY) { return(a.positionV2 == new Vector2(b.x, b.z) && Math.Abs(a.y - b.y) < maxDifY); }
public bool PositionEqualXZ(NodeAbstract node, float yError) { return(PositionEqualXZ(this, node, yError)); }