Method DistanceSquared
DistanceSquared(Location)
Returns the squared distance to the target.
public float DistanceSquared(Location target)
Parameters
targetLocationThe other location to calculate distance between.
Returns
- float
The squared distance in game units, or -1 if the target is in a different area.