?/TD>
Microsoft DirectX 9.0

ID3DXMatrixStack::RotateYawPitchRoll Method


Determines the product of the current matrix and the computed rotation matrix (composed of a given yaw, pitch, and roll).

Syntax

HRESULT RotateYawPitchRoll(      

    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 Value

If the method succeeds, the return value is D3D_OK.



Remarks

This method right-multiplies the current matrix with the computed rotation matrix. All angles are counterclockwise and rotation is about the current world origin.

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

See Also

ID3DXMatrixStack::RotateAxis, ID3DXMatrixStack::RotateAxisLocal, ID3DXMatrixStack::RotateYawPitchRollLocal


© 2002 Microsoft Corporation. All rights reserved.