public float DistanceTo(Pathfinding.IPoint pPoint) { if (pPoint is TileNode) { TileNode otherNode = pPoint as TileNode; return(this.worldPosition.DistanceTo(otherNode.worldPosition)); } else { throw new NotImplementedException(); } }
public override float DistanceTo(Pathfinding.IPoint pPoint) { if (pPoint is TileNode) { PointTileNode otherNode = pPoint as PointTileNode; return(worldPoint.EuclidianDistanceTo(otherNode.worldPoint)); } else { throw new NotImplementedException(); } }
public virtual float DistanceTo(Pathfinding.IPoint pPoint) { if (pPoint is TileNode) { TileNode otherNode = pPoint as TileNode; return(localPoint.EuclidianDistanceTo(otherNode.localPoint)); } else { throw new NotImplementedException(); } }