public float Distance(MapPosition to)
 {
     return(Vector2.Distance(this, to));
 }
Example #2
0
 public Node(MapPosition position, NodeType type)
 {
     this.position = position;
     this.type     = type;
 }
 public bool IsWithin(MapPosition max, MapPosition min)
 {
     return(X >= max.X && X <= min.X && Y >= min.Y && Y <= max.Y);
 }