SkIRect rect = SkIRect::MakeLTRB(0, 0, 100, 100); SkIPoint point = {50, 50}; bool isInside = rect.contains(point);
SkIRect rect1 = SkIRect::MakeLTRB(0, 0, 100, 100); SkIRect rect2 = SkIRect::MakeLTRB(50, 50, 150, 150); SkIRect intersection = rect1.intersect(rect2);This code creates two rectangles with coordinates (0, 0, 100, 100) and (50, 50, 150, 150), then uses the `intersect` method to calculate the intersection of the two rectangles. Package library: Skia Graphics Library.