Quaternion constructor Null safety

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

Constructs a quaternion using the raw values x, y, z, and w.

Implementation

factory Quaternion(double x, double y, double z, double w) =>
    Quaternion._()..setValues(x, y, z, w);