[−][src]Function directx_math::XMQuaternionIdentity
pub fn XMQuaternionIdentity() -> FXMVECTOR
Returns the identity quaternion.
Return value
An XMVECTOR that is the identity quaternion.
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.
Given a quaternion (x
, y
, z
, w
), the XMQuaternionIdentity
function will return the
quaternion (0
, 0
, 0
, 1
).
Reference
https://docs.microsoft.com/en-us/windows/win32/api/directxmath/nf-directxmath-XMQuaternionIdentity