I can not understand how to determine when a circle event occurs (CircleEvent). I have already implemented the generation of random points, sorting them by y and x in order from top to bottom, from left to right. I add a SiteEvent with the first point to the event queue, inside the handler you need to check whether the event is a circle and how many will be for the given point. Judging by this visualizer, a point can have 0, 1 or 2 circles. Is it necessary to build a parabola to check the points that will be included in a given circle, or is this parabola made just to visually understand how this works?

    0