-
I have never actually implemented line-box collision, and so I had trouble with it when trying to move the labels out of the way of the edges in my custom tree graph. At one point, I was thinking, can code really algebra??
Turns out it can. I'm sure there's smarter implementations that use dot products or something, but the naive implementation is simple and works fine for what I'm doing.