// Creating a CCRect with a position and size CCRect myRect = CCRectMake(10, 10, 50, 100); // Checking if two CCRects intersect CCRect otherRect = CCRectMake(30, 30, 80, 80); if(myRect.intersectsRect(otherRect)) { // Rectangles intersect, do something } // Checking if a point is inside a CCRect CCPoint point = ccp(20, 50); if(myRect.containsPoint(point)) { // Point is inside rectangle, do something }These examples demonstrate how CCRect can be used to determine collision detection and to define areas of interest in a game. Coco2d-x is the package library that CCRect belongs to.