User Tools

Site Tools


4rpl:commands:distancecell

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

4rpl/commands/distancecell.txt · Last modified: 2022/09/04 09:26 by Karsten75