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