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