User Tools

Site Tools


4rpl:commands:distancecell

This is an old revision of the document!


Index

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.1618009677.txt.gz · Last modified: 2021/04/09 19:07 by durikkan