Lines Matching defs:r2
334 static Boolean Intersects(float *r1, float *r2)
336 if (RIGHT(r1) <= LEFT(r2)) return False;
337 if (RIGHT(r2) <= LEFT(r1)) return False;
338 if (TOP(r1) <= BOTTOM(r2)) return False;
339 if (TOP(r2) <= BOTTOM(r1)) return False;
402 static void Intersection(float *r1, float *r2, float *dst)
404 LEFT(dst) = MAX(LEFT(r1), LEFT(r2));
405 BOTTOM(dst) = MAX(BOTTOM(r1), BOTTOM(r2));
406 WIDTH(dst) = MIN(RIGHT(r1), RIGHT(r2)) - LEFT(dst);
407 HEIGHT(dst) = MIN(TOP(r1), TOP(r2)) - BOTTOM(dst);
465 /* Replace list r1 with the intersection of r1 and r2 */
471 float *r2,
479 rectangle in r2, then copy the results to r1 */
483 if (Intersects(r, r2)) {
485 Intersection(r, r2, rbuf + (num_rbuf*4));
490 r2 += 4;