The dot product of this point and the point (otherX, otherY).
otherX
otherY
double dotProductXY(double otherX, double otherY) => x * otherX + y * otherY;