Quaternion constructor

Quaternion(double x, double y, double z, 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) =>
    new Quaternion._()..setValues(x, y, z, w);