Share via


Quaternion.CreateFromYawPitchRoll Method (Single, Single, Single)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Creates a new Quaternion from specified yaw, pitch, and roll angles.

Namespace:  Microsoft.Xna.Framework
Assembly:  Microsoft.Xna.Framework.Math (in Microsoft.Xna.Framework.Math.dll)

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
)

Parameters

  • yaw
    Type: System.Single
    The yaw angle, in radians, around the y-axis.
  • pitch
    Type: System.Single
    The pitch angle, in radians, around the x-axis.
  • roll
    Type: System.Single
    The roll angle, in radians, around the z-axis.

Return Value

Type: Microsoft.Xna.Framework.Quaternion
A new Quaternion expressing the specified yaw, pitch, and roll angles.

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.