Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BohemiaInteractive/CWR
/ Length
Function
Length
engine/Poseidon/Graphics/Shadow/ShadowMath.cpp:19–22 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
17
}
18
19
float Length(const Vec3& v)
20
{
21
return std::sqrt(Dot(v, v));
22
}
23
24
Vec3 Normalize(const Vec3& v)
25
{
Callers
1
Normalize
Function · 0.85
Calls
2
sqrt
Function · 0.85
Dot
Function · 0.85
Tested by
no test coverage detected