dotProduct method

double dotProduct(
  1. Vector4D o
)

Implementation

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