set method

QuaternionD set(
  1. num x,
  2. num y,
  3. num z,
  4. num w,
)

Sets all components at once.

Values are converted using num.toDouble.

Implementation

QuaternionD set(num x, num y, num z, num w) {
  this.x = x.toDouble();
  this.y = y.toDouble();
  this.z = z.toDouble();
  this.w = w.toDouble();
  return this;
}