Quaternion is a type and a namespace.

// The namespace contains all types and functions to operates with Quaternion
const next = Quaternion.add(pointA, velocityA)
// The type Quaternion is an alias to Quaternion.ReadonlyQuaternion
const readonlyRotation: Quaternion = Quaternion.Zero()
readonlyRotation.x = 0.1 // this FAILS

// For mutable usage, use `Quaternion.Mutable`
const rotation: Quaternion.Mutable = Quaternion.Identity()
rotation.x = 3.0 // this WORKS

Index

Functions

Type Aliases