[][src]Function directx_math::XMQuaternionRotationNormal

pub fn XMQuaternionRotationNormal(NormalAxis: XMVECTOR, Angle: f32) -> FXMVECTOR

Computes the rotation quaternion about a normal vector.

Parameters

NormalAxis Normal vector describing the axis of rotation.

Angle Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis toward the origin.

Return value

Returns the rotation 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.

Reference

https://docs.microsoft.com/en-us/windows/win32/api/directxmath/nf-directxmath-XMQuaternionRotationNormal