Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WheretIB/nullc
/ normalize2
Function
normalize2
NULLC/includes/math.cpp:148–154 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
146
return sqrt(v->x * v->x + v->y * v->y);
147
}
148
float normalize2(float4* v)
149
{
150
float len = length2(v), invLen = 1.0f / len;
151
v->x *= invLen;
152
v->y *= invLen;
153
return len;
154
}
155
156
float length3(float4* v)
157
{
Callers
nothing calls this directly
Calls
1
length2
Function · 0.85
Tested by
no test coverage detected