Today I learned how to detect collisions between circles and rectangles with 100% accuracy.
This article proposes an implementation of an ergonomic binary search algorithm implemented as a bidirectional generator.
Thank you @abrudz for helping me style this.