How can I perform Collision Detection on rotated rectangles? [closed]

半世苍凉 提交于 2019-12-17 10:57:42

问题


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?

来源:https://stackoverflow.com/questions/641219/how-can-i-perform-collision-detection-on-rotated-rectangles

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!