DirectX SDK

ID3DXMatrixStack::RotateYawPitchRollLocal

The ID3DXMatrixStack::RotateYawPitchRollLocal method determines the product of the computed rotation matrix (composed of a given yaw, pitch, and roll) and the current matrix.

HRESULT RotateYawPitchRollLocal(
  float yaw,
  float pitch,
  float roll
); 

Parameters

yaw
The yaw around the y-axis in radians.
pitch
The pitch around the x-axis in radians.
roll
The roll around the z-axis in radians.

Return Values

This method returns S_OK.

Remarks

This method left-multiplies the current matrix with the computed rotation matrix. All angles are counterclockwise and rotation is about the local origin of the object:

    D3DXMATRIX tmp;
 
    D3DXMatrixRotationYawPitchRoll( &tmp, yaw, pitch, roll );
    m_stack[m_currentPos] = tmp * m_stack[m_currentPos];

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Version: Requires DirectX 7.0.
  Header: Declared in d3dxmath.h.
  Library: Use d3dx.lib.

See Also

ID3DXMatrixStack::RotateAxis, ID3DXMatrixStack::RotateAxisLocal, ID3DXMatrixStack::RotateYawPitchRoll