Quaternion constructor

const Quaternion(
  1. num w, [
  2. num x = 0,
  3. num y = 0,
  4. num z = 0,
])

Constructs a quaternion from its components.

Implementation

const Quaternion(this.w, [this.x = 0, this.y = 0, this.z = 0]);