Simstim

VEX Dictionary / avg

avg

Computes the average of one or more numeric arguments, or of a vector's components.

group: mathmathvector

Available in every context

Usage

int avg(int a)
float avg(float a)
float avg(float a, float b, ...)
float avg(vector2 v)
float avg(vector v)
float avg(vector4 v)
vector2 avg(vector2 a, vector2 b, ...)
vector avg(vector a, vector b, ...)
vector4 avg(vector4 a, vector4 b, ...)
<type> avg(<type> arr[])

Examples

No worked examples yet.

Signatures (from vcc -X)

Related

Full SideFX documentation ↗