bool contains(num x, num y) { var dx = this.x - x; var dy = this.y - y; return dx * dx + dy * dy < radius * radius; }