dot VEX function

Returns the dot product between the arguments.

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

  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.