This visualisation uses AI Generated code, finetuned for the best visualisation, not code quality
sweepline.mov
Interactive Raylib visualiser for interval-overlap intuition using a sweep line, active-set tracking, and several page variants that show how overlap detection changes as the line moves.
- How a sweep line turns interval overlap into ordered event processing
- How the active set changes as starts and ends are crossed
- How different page setups emphasize geometry, event order, and active overlaps
- Why sorting and event discipline matter more than brute-force pair checks
flowchart LR
A["Intervals"]
B["Create Start/End Events"]
C["Sort By Position"]
D["Move Sweep Line"]
E["Maintain Active Set"]
F["Emit Overlaps"]
A --> B
B --> C
C --> D
D --> E
E --> F
q: quit- Page and sweep-specific interactions are shown directly in the app UI
make run