distance VEX function

Returns the distance between the two 3 or 4 dimensional point arguments.

Contexts: image3d, chop, cop, pop, sop, surface, displace, fog, light, shadow, photon, cvex

See also: distance2

  1. float distance(vector , vector )

  2. float distance(vector4 , vector4 )

Returns the distance between the two 3 or 4 dimensional point arguments.