dotProduct method

num dotProduct(
  1. Point<num> other
)

Computes the dot product with another point.

Implementation

num dotProduct(Point<num> other) => (x * other.x) + (y * other.y);