Distance(x1:Int, y1:Int, x2:Int, y2:Int):Num Distance(x1:Int, y1:Int, obj2:Any):Num Distance(obj1:Any, x2:Int, y2:Int):Num Distance(obj1:Any, obj2:Any):Num
Compute distance between two points. Points can be specified as two integers for an X/Y coordinate pair, or an object which must have Loc.X and Loc.Y properties. Examples:
Distance(1000, 1000, 1200, 1200) Distance(Ship(10), Planet(30))
If a wrapped map is being used, the map seam is also considered and the shortest possible distance is reported.
Since: PCC 1.0.11, PCC2 1.99.8
See also: Functions