dotXY method

num dotXY (
  1. num x,
  2. num y
)

Implementation

num dotXY(num x, num y) => this.x * x + this.y * y;