Home Reference VEX VEX functions 

dot vex function

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

Tags: vector

Returns the dot product between the arguments.

  1. float dot(vector , vector )

  2. float dot(vector , vector4 )

  3. float dot(vector4 , vector )

Returns the dot product between the arguments. When 4 component vectors are specified, only the first three components are taken into consideration.