You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to understand the algorithm (btw if there is a formal description -- will be glad to read it) and want to understand what is circle_event.lower_x field, I understand that circle_event class represents circle built during sweeping the plane and from docstring I can see that
lower_x_ - leftmost x-coordinate;
For example, if we have a circle
does this point has coordinates (lower_x, center_y) or am I missing something?
If lower_x is the lefmost should it be always to the left of the center_x?
The text was updated successfully, but these errors were encountered:
lower_x is the x coordinate of the circle event plus the radius. It is used for sorting events in the correct order.
Events are processed left to right, i.e low x value first -> higher x value has lower priority.
So I guess the 'lower' part of the name refer to the priority, not the value.
I'm trying to understand the algorithm (btw if there is a formal description -- will be glad to read it) and want to understand what is
circle_event.lower_x
field, I understand thatcircle_event
class represents circle built during sweeping the plane and from docstring I can see thatFor example, if we have a circle
does this point has coordinates
(lower_x, center_y)
or am I missing something?If
lower_x
is the lefmost should it be always to the left of thecenter_x
?The text was updated successfully, but these errors were encountered: