Table of Contents

Struct Quaterniond

Namespace
NwcIO.Model
Assembly
NwcIO.dll

Represents a unit rotation quaternion with double-precision components (X, Y, Z, W).

public readonly record struct Quaterniond : IEquatable<Quaterniond>

Implements

Inherited Members

Constructors

Quaterniond(double, double, double, double)

Represents a unit rotation quaternion with double-precision components (X, Y, Z, W).

public Quaterniond(double X, double Y, double Z, double W)

Parameters

X double
Y double
Z double
W double

Properties

Identity

public static Quaterniond Identity { get; }

Property Value

Quaterniond

W

public double W { get; init; }

Property Value

double

X

public double X { get; init; }

Property Value

double

Y

public double Y { get; init; }

Property Value

double

Z

public double Z { get; init; }

Property Value

double

Methods

IsNormalized(double)

Returns true if this quaternion is approximately normalized.

public bool IsNormalized(double epsilon = 0.0001)

Parameters

epsilon double

Returns

bool

Normalized()

Returns this quaternion scaled to unit length, or NwcIO.Model.Quaterniond.Identity when its length is approximately zero or a component is not finite. Squaring is done after dividing by the largest component, so large finite inputs cannot overflow the norm.

public Quaterniond Normalized()

Returns

Quaterniond

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.