| 121 | } |
| 122 | |
| 123 | PiuBoolean PiuRectangleIntersects(PiuRectangle r0, PiuRectangle r1) |
| 124 | { |
| 125 | long d; |
| 126 | return ((0 != r0->width) && (0 != r0->height) && (0 != r1->width) && (0 != r1->height) |
| 127 | && (((d = r1->x - r0->x) < 0) ? (r1->width > -d) : (r0->width > d)) |
| 128 | && (((d = r1->y - r0->y) < 0) ? (r1->height > -d) : (r0->height > d)) |
| 129 | ); |
| 130 | } |
| 131 | |
| 132 | PiuBoolean PiuRectangleIsEmpty(PiuRectangle r) |
| 133 | { |
no outgoing calls
no test coverage detected