Computes the square of the magnitude of a quaternion.
XMVECTOR XMQuaternionLengthSq(
XMVECTOR Q
)
Q
Type: XMVECTOR
Quaternion to measure.
Type: XMVECTOR
Returns a vector. The square of the magnitude is replicated into each component.
The DirectXMath quaternion functions use an XMVECTOR 4-vector to represent quaternions, where the X, Y, and Z components are the vector part and the W component is the scalar part.
Header: Declared in directxmath.h.