num dotXY(num x, num y)

Source

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