reciprocal method
Computes the multiplicative inverse of this quaternion.
Implementation
Quaternion reciprocal() {
final f = 1 / norm();
return Quaternion(w * f, -x * f, -y * f, -z * f);
}
Computes the multiplicative inverse of this quaternion.
Quaternion reciprocal() {
final f = 1 / norm();
return Quaternion(w * f, -x * f, -y * f, -z * f);
}