reciprocal method

Quaternion reciprocal()

Computes the multiplicative inverse of this quaternion.

Implementation

Quaternion reciprocal() {
  final f = 1 / norm();
  return Quaternion(w * f, -x * f, -y * f, -z * f);
}