1) cgrectcontainspoint (); Whether the point is in the rectangle
2) Cgrectcontainsrect (); Returns whether the first rectangle contains a second rectangle of 3) cgrectintersectsrect (); Returns whether two rectangles intersect 4) cgrectintersection (); Two rectangular area of intersection of rectangles 5) cgpointequaltopoint (); Whether the two points are a point 6) cgsizeequaltosize (); Two size is the same as 8) Cgrectinset creates rectangles based on the center point of a rectangle, positive values create smaller rectangles, negative values create larger rectangles cgrect r1 = CGRectMake (50,100,200,150); CGRect r2 = Cgrectinset (r1,60,10), R1 to the center of the point of 60, respectively, the 10来 to create the rectangle is the coordinates of the R2 is (110,110,80,130), calculated as (50+60, 100+10, 200-(60*2), 150-(10*2));
Rect and Point