Non axis-aligned rectangle intersection [closed]

[亡魂溺海] 提交于 2019-12-18 13:27:19

问题


I'm trying to find an algorithm that will compute the intersection between 2 rectangles, which are not necessarily axis-aligned, and return the resulting intersection.

This question describes finding whether an intersection exists. I'd like to have the resulting shape of the intersection, if it exists.

My application of the algorithm will use one axis-aligned rectangle and one that is not necessarily axis-aligned, but a general algorithm would be preferable.

Thanks!

来源:https://stackoverflow.com/questions/2089173/non-axis-aligned-rectangle-intersection

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