Quaternion.Quaternion Method (Microsoft.Xna.Framework)

Constructs a quaternion with X, Y, Z and W from four values.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.271)
  • C#
  • VB
  • F#
public Quaternion(
	float x, 
	float y, 
	float z, 
	float w
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

x
Type: System.Single
The x coordinate in 3d-space.
y
Type: System.Single
The y coordinate in 3d-space.
z
Type: System.Single
The z coordinate in 3d-space.
w
Type: System.Single
The rotation component.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web