Matrix.CreateFromYawPitchRoll Method (Single, Single, Single)
Creates a new rotation matrix from a specified yaw, pitch, and roll.
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public static Matrix CreateFromYawPitchRoll (
float yaw,
float pitch,
float roll
)
Parameters
- yaw
Angle of rotation, in radians, around the y-axis. - pitch
Angle of rotation, in radians, around the x-axis. - roll
Angle of rotation, in radians, around the z-axis.
Return Value
A new rotation matrix with the specified yaw, pitch, and roll.
See Also
Reference
Matrix Structure
Matrix Members
Microsoft.Xna.Framework Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista