Op Englesch liesen Editéieren

Deelen iwwer


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.

C#
public Quaternion(System.Numerics.Vector3 vectorPart, float scalarPart);

Parameters

vectorPart
Vector3

The vector part of the quaternion.

scalarPart
Single

The rotation part of the quaternion.

Applies to

.NET 10 an aner Versiounen
Produkt Versiounen
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1
UWP 10.0

Quaternion(Single, Single, Single, Single)

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

Constructs a quaternion from the specified components.

C#
public Quaternion(float x, float y, float z, float w);

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

.NET 10 an aner Versiounen
Produkt Versiounen
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1
UWP 10.0