1TICKIT_RECT_INTERSECT(3)   Library Functions Manual   TICKIT_RECT_INTERSECT(3)
2
3
4

NAME

6       tickit_rect_intersect - obtain the intersection of two rectangles
7

SYNOPSIS

9       #include <tickit.h>
10
11       bool tickit_rect_intersect(TickitRect *dst,
12            const TickitRect *a, const TickitRect *b);
13
14       Link with -ltickit.
15

DESCRIPTION

17       tickit_rect_intersect()  tests  if  the two rectangles given by a and b
18       intersect and if so, initialises the rectangle structure given  by  dst
19       to contain it. It returns true if it did this. If the two given rectan‐
20       gles do not intersect then it returns false and  does  not  modify  the
21       structure given by dst.
22
23       dst  may  be equal to either a or b, or it may refer to a distinct rec‐
24       tangle structure. The two source rectangles are read before the  result
25       is written.
26
27       To  simply test if two given rectangles intersect without obtaining the
28       actual intersection region, use tickit_rect_intersects(3).
29

RETURN VALUE

31       tickit_rect_intersect() returns true if the rectangles  intersect,  and
32       false if not.
33

SEE ALSO

35       tickit_rect_init_sized(3),                 tickit_rect_init_bounded(3),
36       tickit_rect_intersects(3), tickit_rect_add(3), tickit_rect_subtract(3),
37       tickit_rect(7), tickit(7)
38
39
40
41                                                      TICKIT_RECT_INTERSECT(3)
Impressum