Dist (MPI)
From Tapestries MUCK
dist
{dist:x,y} Returns distance from 0,0 that x,y is.
{dist:x,y,z} Returns distance from 0,0,0 that x,y,z is.
{dist:x,y,x2,y2} Returns distance between x,y and x2,y2.
{dist:x,y,z,x2,y2,z2} Returns distance between x,y,z and x2,y2,z2.
Given two arguments, this calculates the distance of a 2D point from he origin.
Given three arguments, this calculates the distance of a 3D point from the origin.
Given four arguments, this calculates the distance between a pair of 2D points.
Given six arguments, this calculates the distance between a pair of 3D points.