bool containsPoint(Point<num> p)

Source

bool containsPoint(Point<num> p) {
  var dx = this.x - p.x;
  var dy = this.y - p.y;
  return dx * dx + dy * dy < radius * radius;
}