dotProduct method

double dotProduct(
  1. Vector2C o
)

Implementation

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