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
In particular, b.x < centerX && b.y >= centerY should correspond to sw, not ne. Similarly, b.x >= centerX && b.y < centerY should correspond to ne, not sw.
The text was updated successfully, but these errors were encountered:
I believe there is an error in the
insert
method of theFork
class. The insertions into quadrants appear to be wrong:In particular,
b.x < centerX && b.y >= centerY
should correspond tosw
, notne
. Similarly,b.x >= centerX && b.y < centerY
should correspond tone
, notsw
.The text was updated successfully, but these errors were encountered: