[][src]Function directx_math::XMQuaternionLn

pub fn XMQuaternionLn(Q: FXMVECTOR) -> FXMVECTOR

Computes the natural logarithm of a given unit quaternion.

Parameters

Q Unit quaternion for which to calculate the natural logarithm. If Q is not a unit quaternion, the returned value is undefined.

Return value

Returns the natural logarithm 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-XMQuaternionLn