Home Reference VEX VEX functions 

distance2 vex function

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

Tags: vector

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

  1. float distance2(vector , vector )

  2. float distance2(vector4 , vector4 )

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