[−][src]Function directx_math::XMQuaternionLengthSq
pub fn XMQuaternionLengthSq(Q: FXMVECTOR) -> FXMVECTOR
Computes the square of the magnitude of a quaternion.
Parameters
Q
Quaternion to measure.
Return value
Returns a vector. The square of the magnitude of Q
is replicated into each component.
Remarks
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.
Reference
https://docs.microsoft.com/en-us/windows/win32/api/directxmath/nf-directxmath-XMQuaternionLengthSq