Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ObEngine/ObEngine
/ normalize
Method
normalize
extlibs/soloud/src/core/soloud_core_3d.cpp:55–66 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
53
}
54
55
void normalize()
56
{
57
float m = mag();
58
if (m == 0)
59
{
60
mX = mY = mZ = 0;
61
return;
62
}
63
mX /= m;
64
mY /= m;
65
mZ /= m;
66
}
67
68
float dot(vec3 a)
69
{
Callers
3
lookatRH
Method · 0.45
lookatLH
Method · 0.45
update3dVoices
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected