Skip to content

Instantly share code, notes, and snippets.

@Yi-Tseng
Created April 2, 2013 08:47
Show Gist options
  • Save Yi-Tseng/5290868 to your computer and use it in GitHub Desktop.
Save Yi-Tseng/5290868 to your computer and use it in GitHub Desktop.
20130402社課-2
if((a.x+a.w >= b.x) || (b.x+b.w >= a.x)){
if((a.y+a.h >= b.y) || (b.y+b.h >= a.y)){
// do some thing
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment