invert method

Quaternion invert(
  1. Quaternion q
)

Inverse the current Quant by q

Implementation

Quaternion invert(Quaternion q ) {
  x = q.x;
  y = q.y;
  z = q.z;
  w = q.w;
  conjugate();
  normalize();
  return this;
}