3

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

but unable to implement it myself lacking even basic mathematical 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!

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.