dot method

double dot(
  1. Quaternion other
)

Implementation

double dot(Quaternion other) {
  return x * other.x + y * other.y + z * other.z + w * other.w;
}