Quaternion.CreateFromYawPitchRoll Method (Microsoft.Xna.Framework)

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

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public static Quaternion CreateFromYawPitchRoll(
	float yaw, 
	float pitch, 
	float roll
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

yaw
Type: System.Single
Yaw around the y axis in radians.
pitch
Type: System.Single
Pitch around the x axis in radians.
roll
Type: System.Single
Roll around the z axis in radians.

Return Value

Type: Microsoft.Xna.Framework.Quaternion
A new quaternion from the concatenated yaw, pitch, and roll angles.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web