A Rectangle Contains/touches other Rectangle

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i m developing a wayfinding solution, i need to check if A rectangle bounds
are touching B rectangle bounds.
Arectangle.Contains(B rectangle) only checks if Brectangle is completely in
the Arectangle. i want to check even if Brectangle is not contained but even
if any part of Brectangle is touching any part of Arectangle.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top