MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / lengthSquare

Method lengthSquare

include/reactphysics3d/mathematics/Quaternion.h:233–235  ·  view source on GitHub ↗

Return the square of the length of the quaternion

Source from the content-addressed store, hash-verified

231
232// Return the square of the length of the quaternion
233RP3D_FORCE_INLINE decimal Quaternion::lengthSquare() const {
234 return x*x + y*y + z*z + w*w;
235}
236
237// Normalize the quaternion
238RP3D_FORCE_INLINE void Quaternion::normalize() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected