Share via


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

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

Syntax

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

Parameters

  • yaw
    Type: Single
    Angle of rotation, in radians, around the y-axis.
  • pitch
    Type: Single
    Angle of rotation, in radians, around the x-axis.
  • roll
    Type: Single
    Angle of rotation, in radians, around the z-axis.
  • result
    Type: Matrix
    [OutAttribute] An existing matrix filled in to represent the specified yaw, pitch, and roll.

Requirements

Namespace: Microsoft.Xna.Framework

Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

See Also

Reference

Matrix Structure
Matrix Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone