Quaternion constructor

Quaternion({
  1. double? x,
  2. double? y,
  3. double? z,
  4. double? w,
})

Implementation

Quaternion({
  double? x,
  double? y,
  double? z,
  double? w,
}):
this.x = x ?? 0.0,
this.y = y ?? 0.0,
this.z = z ?? 0.0,
this.w = w ?? 0.0;