MCPcopy Create free account
hub / github.com/WheretIB/nullc / float4__length_float_ref__

Function float4__length_float_ref__

NULLC/translation/std_math_bind.cpp:161–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161float float4__length_float_ref__(float4 * v)
162{
163 return sqrt(v->x * v->x + v->y * v->y + v->z * v->z);
164}
165float float4__normalize_float_ref__(float4 * v)
166{
167 float len = float4__length_float_ref__(v), invLen = 1.0f / len;

Callers 1

Calls 1

sqrtFunction · 0.85

Tested by

no test coverage detected