// The namespace contains all types and functions to operates with Quaternion constnext = Quaternion.add(pointA, velocityA) // The type Quaternion is an alias to Quaternion.ReadonlyQuaternion constreadonlyRotation: Quaternion = Quaternion.Zero() readonlyRotation.x = 0.1// this FAILS
// For mutable usage, use `Quaternion.Mutable` constrotation: Quaternion.Mutable = Quaternion.Identity() rotation.x = 3.0// this WORKS
Quaternion is a type and a namespace.