dotProduct method

double dotProduct(
  1. Vector3D o
)

Implementation

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