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
  • C#
  • VB
  • F#
public static void CreateFromYawPitchRoll(
	float yaw, 
	float pitch, 
	float roll, 
	out Quaternion result

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.


Type: System.Single
Yaw around the y axis in radians.
Type: System.Single
Pitch around the x axis in radians.
Type: System.Single
Roll around the z axis in radians.
Type: out Microsoft.Xna.Framework.Quaternion
A new quaternion from the concatenated yaw, pitch, and roll angles as an output parameter.
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop