tickit_rect_intersects(3)

tickit_rect_intersects3

Test if two rectangles intersect

Usage

#include <tickit.h>

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

Link with -ltickit.

Overview

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) can be used to obtain this intersection as well as performing the intersection test itself.

Return value

tickit_rect_contains() returns a boolean value.

Releases

Unchanged in 4 releases since Debian 10 (Buster).

  1. 10–13

From libtickit-dev 0.4.3-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.