Quaternion.CreateFromYawPitchRoll Method (Single, Single, Single, Quaternion)

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

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

Syntax

public static void CreateFromYawPitchRoll (
         float yaw,
         float pitch,
         float roll,
         out Quaternion result
)

Parameters

  • yaw
    The yaw angle, in radians, around the y-axis.
  • pitch
    The pitch angle, in radians, around the x-axis.
  • roll
    The roll angle, in radians, around the z-axis.
  • result
    [OutAttribute] An existing Quaternion filled in to express the specified yaw, pitch, and roll angles.

See Also

Reference

Quaternion Structure
Quaternion Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista