scale method

Quat scale(
  1. Quat q,
  2. double s
)

Set the current Quant with the new values

Implementation

Quat scale(Quat q, double s) {
  x = q.x * s;
  y = q.y * s;
  z = q.z * s;
  w = q.w *s;
  return this;
}