dot method

double dot(
  1. Point<double> other
)

Dot product

Implementation

double dot(Point<double> other) => x * other.x + y * other.y;