num distanceXY(num x, num y) { final xd = this.x - x; final yd = this.y - y; return sqrt(xd * xd + yd * yd); }