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

Method length

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

Source from the content-addressed store, hash-verified

102
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

Callers 2

angleMethod · 0.45
distanceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected