SkIRect rect; rect.set(0, 0, 100, 50); // The above code creates a rectangle with top-left corner at (0, 0) and width = 100 and height = 50.
SkIRect rect; rect.set(0, 0, 100, 50); rect.offset(50, 20); // The above code moves the rectangle to have a top-left corner at (50, 20).
SkIRect rect1, rect2; rect1.set(0, 0, 100, 50); rect2.set(80, 30, 150, 80); if (rect1.intersects(rect2)) { // The above code checks if rect1 and rect2 intersect. }The SkIRect class is part of the Skia Graphics Library, which is a 2D graphics library written in C++.