distanceTo method

double distanceTo(
  1. Point point
)

Shortest distance from circle boundary to point

Returns 0 if point is on boundary, negative if inside.

Implementation

double distanceTo(Point point) {
  return center.distanceTo(point) - radius;
}