Matrix.CreateFromYawPitchRoll Method (Single, Single, Single)
Creates a new rotation matrix from a specified yaw, pitch, and roll.
Syntax
'Declaration
Public Shared Function CreateFromYawPitchRoll ( _
yaw As Single, _
pitch As Single, _
roll As Single _
) As Matrix
public static Matrix CreateFromYawPitchRoll (
float yaw,
float pitch,
float roll
)
public:
static Matrix CreateFromYawPitchRoll(
float yaw,
float pitch,
float roll
)
Parameters
- yaw
Type: Single
Angle of rotation, in radians, around the y-axis. - pitch
Type: Single
Angle of rotation, in radians, around the x-axis. - roll
Type: Single
Angle of rotation, in radians, around the z-axis.
Return Value
Type: Matrix
A new rotation matrix with the specified yaw, pitch, and roll.
Requirements
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
Matrix Structure
Matrix Members
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone