Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KAlO2/PerfectShow
/ length
Method
length
jni/venus/vec4.h:100–100 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
98
99
T length2() const { return x*x + y*y + z*z + w*w; }
100
T length() const { return std::sqrt(x*x + y*y + z*z + w*w); }
101
void normalize() { *this /= length(); }
102
103
vec4<T>& translate(const vec4<T>& vector);
Callers
2
angle
Method · 0.45
distance
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected