Function directx_math::XMQuaternionNormalize [−][src]
pub fn XMQuaternionNormalize(Q: FXMVECTOR) -> FXMVECTOR
Computes the normalized version of a quaternion.
Parameters
Q
Quaternion to normalize.
Return value
Returns the normalized form of Q
.
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-XMQuaternionNormalize