- Fix negative width/height for this rect ; | |
- Returns a rect moved by the given offset ; | |
- Returns a rect with the dimensions changed by the arguments (from center). ; | |
- Returns a rectangle surrounding both rectangles. ; | |
- Returns true if the given position is inside the rect (inclusive) ; | |
- Returns true if rectangles overlap. ; | |
- Returns first index of rectangle that intersects from a list. -1 if no intersections. ; | |
- Returns list of all indexes of rects intersecting. ; | |
- Returns a rect of the overlapping area between rects. 0 width/height if not touching. ; | |
- Returns true if rect completely surrounds given rect. ; | |
- Returns rect moved to be contained in given rectangle. ; |
rect.collidepoint(x, y) -> int
rect.colliderect(rectstyle) -> rect
rect.colliderect(rectstyle list) -> int index
rect.colliderectall(rectstyle list) -> int index
rect.contains(rectstyle) -> int