Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2014
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. struct RectI {
  2. int left; int top; int right; int bottom;
  3.  
  4. BOOL Intersects(const RectI& rc) { return (!(left > rc.left || right < rc.right || top > rc.bottom || bottom < rc.top)); }
  5. BOOL Intersects(int l, int t, int r, int b) { return Intersects(RectI(l, t, r, b)); }
  6. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement