Author Topic: Square Position Checking  (Read 3498 times)

0 Members and 1 Guest are viewing this topic.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Square Position Checking
« on: March 12, 2011, 06:52:38 pm »
I'm tired and I can't think of this now but need to make this now...


I have two squares, and I need a condition to check if one of them (smaller or equal than the other) is inside it.

I have the x and y coordinates of both squares and both squares height and width.

What is the condition to make sure one is inside an other?

Thanks.

NEVERMIND

Sorry but I managed to do do it, but now I gotta sleep, wasted al my energy.
« Last Edit: March 12, 2011, 07:02:07 pm by Scout »