Original Post
I carn''t rember how this works, say I have 2 rectangles defined like this
struct Rect {
int x, y, w, h;
};
How could i find out if 2 rectngles overlap I''ve got it working with lots of for-loop but shurly theres a mathmatical way of doing it?