Home Reference VEX VEX functions 

distance vex function

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

Tags: vector

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

  1. float distance(vector , vector )

  2. float distance(vector4 , vector4 )

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