dotProduct method

double dotProduct(
  1. ExpressivePoint other
)

The dot product of this point and other.

Implementation

double dotProduct(ExpressivePoint other) => x * other.x + y * other.y;