Matrix.CreateFromYawPitchRoll Method (Single, Single, Single, Matrix%)

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

Fills in a rotation matrix from a specified yaw, pitch, and roll.

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

Syntax

'Declaration
Public Shared Sub CreateFromYawPitchRoll ( _
    yaw As Single, _
    pitch As Single, _
    roll As Single, _
    <OutAttribute> ByRef result As Matrix _
)
public static void CreateFromYawPitchRoll(
    float yaw,
    float pitch,
    float roll,
    out Matrix result
)

Parameters

  • yaw
    Type: System.Single
    Angle of rotation, in radians, around the y-axis.
  • pitch
    Type: System.Single
    Angle of rotation, in radians, around the x-axis.
  • roll
    Type: System.Single
    Angle of rotation, in radians, around the z-axis.

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.