VEX Dictionary / length2
length2
Returns the squared magnitude of a vector, cheaper than squaring the result of length.
group: mathvectormeasure
Available in every context
Usage
float length2(vector2 v)
float length2(vector v)
float length2(vector4 v)
Examples
No worked examples yet.
Signatures (from vcc -X)
float length2(vector4)all contextsfloat length2(vector2)all contextsfloat length2(vector)all contexts