avg
VEX function
Returns the average of the vector’s 3 components
Contexts: image3d, chop, cop, pop, sop, surface, displace, fog, light, shadow, photon, cvex
-
float avg(vector v)Returns the average of the vector’s 3 components
-
float avg(float a, float b)Returns the average of a and b.
-
vector avg(vector , vector )Returns the average of the two vectors.
-
vector4 avg(vector4 , vector4 )Returns the average of the two vectors.
-
float avg(float[] arr)Returns the average of the floats in the array.