Dist (MPI)
From Tapestries MUCK
(Difference between revisions)
Line 1: | Line 1: | ||
- | [[Category: | + | [[Category:functions (MPI)]][[Category:Math Functions (MPI)]] |
=dist= | =dist= | ||
<mpi>{dist:x,y} Returns distance from 0,0 that x,y is.</mpi> | <mpi>{dist:x,y} Returns distance from 0,0 that x,y is.</mpi> |
Latest revision as of 01:37, 31 March 2007
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.