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

Function float2__length_float_ref__

NULLC/translation/std_math_bind.cpp:136–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136float float2__length_float_ref__(float2 * v)
137{
138 return sqrt(v->x * v->x + v->y * v->y);
139}
140float float2__normalize_float_ref__(float2 * v)
141{
142 float len = float2__length_float_ref__(v), invLen = 1.0f / len;

Callers 1

Calls 1

sqrtFunction · 0.85

Tested by

no test coverage detected