distance2 VEX function

Returns the squared 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: distance

  1. float distance2(vector , vector )

  2. float distance2(vector4 , vector4 )

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