Element index of this value's first element within its view.
Returns the length of Quat.
The active typed-array memory view.
Gets the value at given index.
Copies a managed array to this. Reads from from ITS OWN view and writes into
this value's view, so the operands may live in different managers / element
types (e.g. copying an f64 source into an f32 destination performs the
numeric conversion). Assumes non-overlapping regions (true for all munum uses).
Frees the backing pointer (no-op if borrowed).
Inverts this.
Computes the linear interpolation between this and RHS.
Normalizes this.
Copies an array to this.
Sets the value at given index.
Computes the shperic interpolation between this and RHS.
StaticfromReturn a Quat from rotation around x-axis.
StaticfromReturn a Quat from rotation around y-axis.
StaticfromReturn a Quat from rotation around z-axis.
StaticfromReturn a Quat from axis and angle
StaticfromReturn a Quat from unit vectors.
StaticidentityReturn an identity Quat.
StaticviewWraps an existing memory region as a borrowed (non-owning) Quat.
OptionalbyteOffset: numberProtected StaticviewSingle-sourced borrow helper. Wraps existing memory as a NON-owning instance
of the concrete class ctor: its free()/dispose is always a no-op and the
underlying storage is never freed through it. Subclasses expose a thin typed
static view(...) that forwards here.
the concrete subclass constructor (used only for its prototype)
length of the region in elements
a pointer, or a view provider (a MemoryManager, or float64View(array))
OptionalbyteOffset: number
byte offset into the region; defaults to a passed pointer's own offset
A quaternion.