Displaying 2 results from an estimated 2 matches for "rect1".
Did you mean:
rect
2008 Feb 08
0
[PATCH] Make outputDeviceForGeometry behave smarter when dealing with overlapping outputs. Currently, the current output is returned if some part of the rectangle is on it; otherwise the output device the rectangle center is on is returned. This works
...@ -36,6 +36,7 @@
#include <sys/types.h>
#include <unistd.h>
#include <assert.h>
+#include <limits.h>
#include <X11/Xlib.h>
#include <X11/Xatom.h>
@@ -3953,6 +3954,27 @@ viewportForGeometry (CompScreen *s,
}
}
+static int
+rectangleOverlapArea (BOX *rect1,
+ BOX *rect2)
+{
+ int left, right, top, bottom;
+
+ /* extents of overlapping rectangle */
+ left = MAX (rect1->x1, rect2->x1);
+ right = MIN (rect1->x2, rect2->x2);
+ top = MAX (rect1->y1, rect2->y1);
+ bottom = MIN (rect1->y2, rect2->y2);
+
+...
2013 Oct 19
3
bold dot size and name in plot
Dear useRs,
I have the following data "z" of two variables "x"(z[,1]) and "y"(z[,2]).
> dput(z)
structure(c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66,