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

Method length2

jni/venus/vec3.h:108–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected