How can I perform Collision Detection on rotated rectangles?

William picture William · Mar 13, 2009 · Viewed 25.7k times · Source

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?

Answer