dotProduct method

double dotProduct(
  1. Q o
)

Implementation

double dotProduct(Q o) => x * o.x + y * o.y + z * o.z + w * o.w;