(rect: [int], min: [int], max: [int])
| 54 | |
| 55 | |
| 56 | def clamp_rect(rect: [int], min: [int], max: [int]): |
| 57 | return ( |
| 58 | clamp(rect[0], min[0], max[0]), |
| 59 | clamp(rect[1], min[1], max[1]), |
| 60 | clamp(rect[2], min[0], max[0]), |
| 61 | clamp(rect[3], min[1], max[1]), |
| 62 | ) |
| 63 | |
| 64 | |
| 65 | def add_overlap_rect(rect: [int], overlap: int, image_size: [int]): |
no test coverage detected