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
Properties
Identity
public static Quaterniond Identity { get; }Property Value
W
public double W { get; init; }Property Value
X
public double X { get; init; }Property Value
Y
public double Y { get; init; }Property Value
Z
public double Z { get; init; }Property Value
Methods
IsNormalized(double)
Returns true if this quaternion is approximately normalized.
public bool IsNormalized(double epsilon = 0.0001)Parameters
epsilondouble
Returns
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
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()Returns
- string
-
The fully qualified type name.