containsPoint method

  1. @override
bool containsPoint(
  1. Vector2 point
)
override

Checks whether the represented circle contains the point.

Implementation

@override
bool containsPoint(Vector2 point) {
  final scaledRadius = this.scaledRadius;
  return absoluteCenter.distanceToSquared(point) <
      scaledRadius * scaledRadius;
}