开发者

Java Implementation of Rectangle Intersection Algorithm..?

I am interested in this algorithm: Algorithm to detect intersection of two rectangles?

but unable to implement it myself lacking even basic mathematic开发者_如何学编程al skills. I think I could understand it better once I can read the code. Does somebody perhaps have already an implementation or can quickly write one?

Thanks!


If you're using Java, all implementations of the Shape interface have an intersects method that take a rectangle.

from Algorithm to detect intersection of two rectangles?

Java doc

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜