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

Function float3__length_float_ref__

NULLC/translation/std_math_bind.cpp:148–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148float float3__length_float_ref__(float3 * v)
149{
150 return sqrt(v->x * v->x + v->y * v->y + v->z * v->z);
151}
152float float3__normalize_float_ref__(float3 * v)
153{
154 float len = float3__length_float_ref__(v), invLen = 1.0f / len;

Callers 1

Calls 1

sqrtFunction · 0.85

Tested by

no test coverage detected