Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct RectI {
- int left; int top; int right; int bottom;
- BOOL Intersects(const RectI& rc) { return (!(left > rc.left || right < rc.right || top > rc.bottom || bottom < rc.top)); }
- BOOL Intersects(int l, int t, int r, int b) { return Intersects(RectI(l, t, r, b)); }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement