I have two rectangles in a WPF application. How can I check whether the rectangles intersect or not?
if (rectangle1.IntersectsWith(rectangle2))
{
// Do something
}
Rect.IntersectWith
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With