Dist2d()

From TinyMUX
Jump to navigation Jump to search


dist2d(x1, y1, x2, y2)

Returns the distance between the Cartesian points in two dimensions

 (x1,y1) and (x2,y2).

Example

> say dist2d(0,0,3,4)

You say, "5"

Related Topics

dist3d()