ID3DXMATRIXStack::RotateYawPitchRollLocal

Rotates (relative to the object's local coordinate space) around an arbitrary axis.

HRESULT RotateYawPitchRollLocal(
  FLOAT Yaw,
  FLOAT Pitch,
  FLOAT Roll
);

Parameters

Yaw
[in] The yaw around the y-axis in radians.
Pitch
[in] The pitch around the x-axis in radians.
Roll
[in] The roll around the z-axis in radians.

Return Values

If the method succeeds, the return value is D3D_OK.

Remarks

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] = tmp * m_stack[m_currentPos];

Because the rotation is left-multiplied to the matrix stack, the rotation is relative to the object's local coordinate space.

Requirements

Header: Declared in D3dx9math.h.

See Also

D3DXMatrixRotationAxis, ID3DXMATRIXStack::RotateAxis, ID3DXMATRIXStack::RotateAxisLocal, ID3DXMATRIXStack::RotateYawPitchRoll