MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / PiuRectangleIntersects

Function PiuRectangleIntersects

modules/piu/All/piuRectangle.c:123–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123PiuBoolean 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
132PiuBoolean PiuRectangleIsEmpty(PiuRectangle r)
133{

Callers 3

PiuScrollerUpdateFunction · 0.85
PiuContainerUpdateFunction · 0.85
PiuContentUpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected