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

Method length

include/reactphysics3d/mathematics/Quaternion.h:228–230  ·  view source on GitHub ↗

Return the length of the quaternion (RP3D_FORCE_INLINE)

Source from the content-addressed store, hash-verified

226
227// Return the length of the quaternion (RP3D_FORCE_INLINE)
228RP3D_FORCE_INLINE decimal Quaternion::length() const {
229 return std::sqrt(x*x + y*y + z*z + w*w);
230}
231
232// Return the square of the length of the quaternion
233RP3D_FORCE_INLINE decimal Quaternion::lengthSquare() const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected