dot method

double dot(
  1. Point other
)

Dot product with other

Implementation

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