dotProductXY method

double dotProductXY(
  1. double otherX,
  2. double otherY
)

Implementation

double dotProductXY(double otherX, double otherY) => x * otherX + y * otherY;