[][src]Function directx_math::XMQuaternionToAxisAngle

pub fn XMQuaternionToAxisAngle(
    pAxis: &mut FXMVECTOR,
    pAngle: &mut f32,
    Q: FXMVECTOR
)

Computes an axis and angle of rotation about that axis for a given quaternion.

Parameters

pAxis Address of a 3D vector describing the axis of rotation for the quaternion Q.

pAngle Address of float describing the radian angle of rotation for the quaternion Q.

Q Quaternion to measure.

Return value

None.

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-XMQuaternionToAxisAngle