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

Method length2

jni/venus/vec4.h:99–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97 friend bool fuzzyEqual(const vec4<T>& lhs, const vec4<T>& rhs) { return lhs == rhs; }
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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected