distance()
Purpose
Find the distance between 2 points
Description
Returns the distance between 2 points in a 2 or 3 dimensions
Syntax
result = distance( point1, point2 )
Arguments
point1 Coordinates of first point { x, y, z }
point2 Coordinates of second point { x, y, z }
result Distance between point1 and point2
Example
p1 = { 80, 20, 60 }
p2 = { 30, 50, 70 }
print( distance( p1, p2 ) )
update()
sleep( 3 )
Associated Commands