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

Function length3

NULLC/includes/math.cpp:156–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154 }
155
156 float length3(float4* v)
157 {
158 return sqrt(v->x * v->x + v->y * v->y + v->z * v->z);
159 }
160 float normalize3(float4* v)
161 {
162 float len = length3(v), invLen = 1.0f / len;

Callers 1

normalize3Function · 0.85

Calls 1

sqrtFunction · 0.85

Tested by

no test coverage detected