Quaternion struct
Rotation quaternion, Hamilton convention, stored and constructed in x, y, z, w order (w
last). default(Quaternion) is all zeros, not a rotation; use Quaternion.Identity.
Namespace: Quaternar.Qaros.Mathematics · Assembly: Quaternar.Qaros.dll · Source: Mathematics.cs
public readonly struct Quaternion
Constructors
Quaternion(float, float, float, float)
public Quaternion(float x, float y, float z, float w)
Parameters
| Name | Type | Description |
|---|---|---|
x | float | |
y | float | |
z | float | |
w | float |
Properties
| Member | Description |
|---|---|
| X | |
| Y | |
| Z | |
| W | |
| Identity |
X
public float X { get; }
Value: float
Y
public float Y { get; }
Value: float
Z
public float Z { get; }
Value: float
W
public float W { get; }
Value: float
Identity
public static Quaternion Identity { get; }
Value: Quaternion