Skip to main content
Version: 0.9.0

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

NameTypeDescription
xfloat
yfloat
zfloat
wfloat

Properties​

MemberDescription
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