ID3DXMATRIXStack::RotateYawPitchRoll method (D3dx9math.h)
The D3DX utility library is deprecated. We recommend that you use DirectXMath instead along with this header from GitHub.
Rotates (relative to world coordinate space) around an arbitrary axis.
HRESULT RotateYawPitchRoll( [in] FLOAT Yaw, [in] FLOAT Pitch, [in] FLOAT Roll );
The yaw around the y-axis in radians.
The pitch around the x-axis in radians.
The roll around the z-axis in radians.
If the method succeeds, the return value is D3D_OK.
This method adds the rotation to the matrix stack with the computed rotation matrix similar to the following:
D3DXMATRIX tmp; D3DXMatrixRotationYawPitchRoll( &tmp, yaw, pitch, roll ); m_stack[m_currentPos] = m_stack[m_currentPos] * tmp;
Because the rotation is right-multiplied to the matrix stack, the rotation is relative to world coordinate space.