LayoutRect myRect(10, 10, 100, 50);
LayoutRect myRect(10, 10, 100, 50); myRect.SetWidth(150); myRect.SetHeight(75);
LayoutRect rect1(10, 10, 50, 50); LayoutRect rect2(30, 30, 100, 100); if (rect1.Intersects(rect2)) { // Do something... }This checks if the first rectangle intersects with the second rectangle and takes some action if they do.