views:

865

answers:

2

Okay, I'm trying to write a program that could tell me if any points in a 30x100 rectangle rotated to 140 degrees are inside another 30x100 rectangle rotated to 200 degrees.

Honestly, I don't even know where to start. I thought about re-rotating them before doing normal calculations, but than they still wouldn't match up.

How can I do this?

+1  A: 

Here's a tutorial on collision detection for 2D rotated rectangles.

2D Rotated Rectangles Collision Detection

Jim H.
+3  A: 

Google provides 2D rotated rectangle collision on GameDev.net.

strager