Algorithm to detect intersection of two rectangles?
The standard method would be to do the separating axis test (do a google search on that). In short: Two objects don’t intersect if you can find a line that separates the two objects. e.g. the objects / all points of an object are on different sides of the line. The fun thing is, that … Read more