containsPoint method

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

Returns true if the given point is inside the shape or on the boundary.

Implementation

@override
bool containsPoint(Vector2 point) {
  return (_tmpResult
            ..setFrom(point)
            ..sub(_center))
          .length2 <=
      _radius * _radius;
}