My goal here was to use linear functions and calculating the intersections of them.Your approach is far better for 2D visibility. I like your detailed visualisation of it.
Awesome article, thanks.