Пример #1
0
        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));
        }
Пример #2
0
 public static bool PositionEqualXZ(NodeAbstract a, NodeAbstract b, float maxDifY)
 {
     return(a.positionV2 == b.positionV2 && Math.Abs(a.y - b.y) < maxDifY);
 }
Пример #3
0
 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);
 }
Пример #4
0
 public bool PositionEqualXZ(NodeAbstract node, float yError)
 {
     return(PositionEqualXZ(this, node, yError));
 }