dot method

double dot(
  1. Quaternion other
)

Four-dimensional dot product.

Implementation

double dot(Quaternion other) =>
    x * other.x + y * other.y + z * other.z + w * other.w;