Index
Math Utility

DistanceCell

DistanceCell(<-x <-z <-tX <-tZ) ->dist

Description

Returns the 2D distance between two given pairs of coordinates. (Or two sets of number pairs on the coordinate plane) Typically the passed in values are integers. However, this routine accepts floats and returns a float.

Examples

GetUnitCell(self) 0 0 DistanceCell ->dist #Find the distance between itself and 0,0
trace(<-dist)

Index