MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / normalize

Method normalize

jni/venus/vec2.h:105–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103 T length2() const { return x*x + y*y; }
104 T length() const { return std::sqrt(x*x + y*y); }
105 void normalize() { *this /= length(); }
106
107 // ceil/floor/fract
108

Callers 1

projectMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected