operator<<
John Cormie's Radio Weblog

 






Subscribe to "operator<<" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

 

 

  Friday, June 07, 2002


Why I won't be at Microsoft next term:
struct rect {
  long x,y,w,h;
};

inline bool overlaps(struct rect* r1, struct rect* r2)
{
  return ( r1->x < (r2->x + r2->w) ) && 
         ( r2->x < (r1->x + r1->w) ) &&
         ( r1->y < (r2->y + r2->h) ) &&
         ( r2->y < (r1->y + r1->h) );
}

6:28:44 PM     comment []


Click here to visit the Radio UserLand website. © Copyright 2004 John Cormie.
Last update: 3/21/2004; 10:27:15 AM.

June 2002
Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            
May   Jul