Thread: Box Checks
View Single Post
  #9  
Old 04-12-2010, 10:44 PM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
Quote:
Originally Posted by WhiteDragon View Post
Check out the separating axis theorem.
Although not as simple as this, it gave me a good idea on how to go about this, and works perfect! Thanks for the springboard.
Checked if either of the image's edges are inside another one, so there are 4 checks each for horizontal and vertical.
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote