Function directx_math::XMQuaternionIsIdentity [−][src]
pub fn XMQuaternionIsIdentity(Q: FXMVECTOR) -> bool
Tests whether a specific quaternion is the identity quaternion.
Parameters
Q
Quaternion to test.
Return value
Returns true
if Q
is the identity quaternion, or false
otherwise.
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-XMQuaternionIsIdentity