3 ms·
I don't know, I looked at the one with packed circles, and the algorithm was silly: A loop that grow radius by one and check for collision each time, instead of
by SkittishLemur 6y ago
I don't know, I looked at the one with packed circles, and the algorithm was silly: A loop that grow radius by one and check for collision each time, instead of directly setting the radius to the proper value.
Edit: This is what I mean: https://pastebin.com/r0n19jZa https://pastebin.com/r0n19jZa
(Well, except that I inlined functions, and that may be considered bad style.)