Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KAlO2/PerfectShow
/ normalize
Method
normalize
jni/venus/vec3.h:110–110 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
108
T length2() const { return x*x + y*y + z*z; }
109
T length() const { return std::sqrt(x*x + y*y + z*z); }
110
void normalize() { *this /= length(); }
111
112
/**
113
* give the vector v a spherical coordinate system(rho, theta, phi) view.
Callers
1
project
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected