Quaternion Constructors

Definition

Creates a new Quaternion object.

Overloads

Quaternion(Vector3, Single)

Creates a quaternion from the specified vector and rotation parts.

Quaternion(Single, Single, Single, Single)

Constructs a quaternion from the specified components.

Quaternion(Vector3, Single)

Source:
Quaternion.cs
Source:
Quaternion.cs
Source:
Quaternion.cs

Creates a quaternion from the specified vector and rotation parts.

public:
 Quaternion(System::Numerics::Vector3 vectorPart, float scalarPart);
public Quaternion (System.Numerics.Vector3 vectorPart, float scalarPart);
new System.Numerics.Quaternion : System.Numerics.Vector3 * single -> System.Numerics.Quaternion
Public Sub New (vectorPart As Vector3, scalarPart As Single)

Parameters

vectorPart
Vector3

The vector part of the quaternion.

scalarPart
Single

The rotation part of the quaternion.

Applies to

Quaternion(Single, Single, Single, Single)

Source:
Quaternion.cs
Source:
Quaternion.cs
Source:
Quaternion.cs

Constructs a quaternion from the specified components.

public:
 Quaternion(float x, float y, float z, float w);
public Quaternion (float x, float y, float z, float w);
new System.Numerics.Quaternion : single * single * single * single -> System.Numerics.Quaternion
Public Sub New (x As Single, y As Single, z As Single, w As Single)

Parameters

x
Single

The value to assign to the X component of the quaternion.

y
Single

The value to assign to the Y component of the quaternion.

z
Single

The value to assign to the Z component of the quaternion.

w
Single

The value to assign to the W component of the quaternion.

Applies to