---
name: "tickit_rect_intersects"
section: "3"
platform: "linux"
package: "libtickit-dev"
version: "0.4.3-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/tickit_rect_intersects"
---

# tickit\_rect\_intersects(3)

test if two rectangles intersect

## NAME

tickit\_rect\_intersects - test if two rectangles intersect

## SYNOPSIS

```
#include <tickit.h>

bool tickit_rect_intersects(const TickitRect *a, const TickitRect *b);
```

Link with *-ltickit*.

## DESCRIPTION

**tickit\_rect\_intersects**() tests whether the two given rectangles intersect at all. It returns true if there is a non-empty rectangular region in common covered by both rectangles. [**tickit\_rect\_intersect**(3)](/tickit_rect_intersect/3.md) can be used to obtain this intersection as well as performing the intersection test itself.

## RETURN VALUE

**tickit\_rect\_contains**() returns a boolean value.

## SEE ALSO

[**tickit\_rect\_init\_sized**(3)](/tickit_rect_init_sized/3.md), [**tickit\_rect\_init\_bounded**(3)](/tickit_rect_init_bounded/3.md), [**tickit\_rect\_contains**(3)](/tickit_rect_contains/3.md), [**tickit\_rect\_intersect**(3)](/tickit_rect_intersect/3.md), [**tickit\_rect**(7)](/tickit_rect/7.md), [**tickit**(7)](/tickit/7.md)
