Home Reference VEX VEX functions 

avg vex function

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

Tags: vector

Returns the average of the vector’s 3 components

  1. float avg(vector )

  2. float avg(float , float )

  3. vector avg(vector , vector )

  4. vector4 avg(vector4 , vector4 )

Returns the average of the vector’s 3 components