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
精彩评论