Matrix.RotationYawPitchRoll(Single,Single,Single) Method (Microsoft.DirectX)
Builds a matrix with a specified yaw, pitch, and roll.
Definition
Visual Basic Public Shared Function RotationYawPitchRoll( _
ByVal yaw As Single, _
ByVal pitch As Single, _
ByVal roll As Single _
) As MatrixC# public static Matrix RotationYawPitchRoll(
float yaw,
float pitch,
float roll
);C++ public:
static Matrix RotationYawPitchRoll(
float yaw,
float pitch,
float roll
);JScript public static function RotationYawPitchRoll(
yaw : float,
pitch : float,
roll : float
) : Matrix;
Parameters
yaw System.Single
Yaw around the y-axis, in radians.pitch System.Single
Pitch around the x-axis, in radians.roll System.Single
Roll around the z-axis, in radians.
Return Value
Microsoft.DirectX.Matrix
Rotated Matrix structure.
Remarks
The order of transformations is first roll, then pitch, then yaw. Relative to the object's local coordinate axis, this is equivalent to rotation around the z-axis, followed by rotation around the x-axis, followed by rotation around the y-axis.
See Also