?/TD>
Microsoft DirectX 9.0

D3DXQuaternionRotationYawPitchRoll Function


Builds a quaternion with the given yaw, pitch, and roll.

Syntax

D3DXQUATERNION *D3DXQuaternionRotationYawPitchRoll(      

    D3DXQUATERNION *pOut,     FLOAT Yaw,     FLOAT Pitch,     FLOAT Roll );

Parameters

pOut
[in, out] Pointer to the D3DXQUATERNION structure that is the result of the operation.
Yaw
[in] Yaw around the y-axis, in radians.
Pitch
[in] Pitch around the x-axis, in radians.
Roll
[in] Roll around the z-axis, in radians.

Return Value

Pointer to a D3DXQUATERNION structure with the specified yaw, pitch, and roll.



Remarks

The return value for this function is the same value returned in the pOut parameter. In this way, the D3DXQuaternionRotationYawPitchRoll function can be used as a parameter for another function.

Function Information

Headerd3dx9math.h
Import libraryd3dx9.lib
Minimum operating systems Windows 98

See Also

D3DXQuaternionRotationAxis, D3DXQuaternionRotationMatrix


© 2002 Microsoft Corporation. All rights reserved.