Quaternion.CreateFromYawPitchRoll Method (Single, Single, Single, Quaternion)
Creates a new Quaternion from specified yaw, pitch, and roll angles.
Syntax
'Declaration
Public Shared Sub CreateFromYawPitchRoll ( _
yaw As Single, _
pitch As Single, _
roll As Single, _
out result As Quaternion _
)
public static void CreateFromYawPitchRoll (
float yaw,
float pitch,
float roll,
out Quaternion result
)
public:
static void CreateFromYawPitchRoll(
float yaw,
float pitch,
float roll,
out Quaternion result
)
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. - result
Type: Quaternion
[OutAttribute] An existing Quaternion filled in to express 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