TICKIT_RECT_INTERSECTS(3)
π TICKIT_RECT_INTERSECTS π
okay bestie, welcome to the tickit_rect_intersects(3) page, straight out of the Library Functions Manual π«Ά this one lives in section 3 with all the other library functions, and it's genuinely so simple it's giving main character energy for like three lines of code. no cap.
β¨ 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. π
(yes you literally have to link it, don't forget, i'm begging)
π« DESCRIPTION π«
so tickit_rect_intersects() does exactly one (1) thing and it eats: it tests whether the two given rectangles intersect at all π₯
it returns true if there is a non-empty rectangular region in common that's covered by both rectangles. that's the whole vibe check. if they overlap even a little, true. if they're just touching edges or fully apart, no overlap, no true, periodt.
and listen β if you want the actual intersection region itself, not just the yes/no answer, tickit_rect_intersect(3) can be used to obtain this intersection as well as performing the intersection test itself π like, it does both. iconic of it honestly.
π RETURN VALUE π
tickit_rect_contains() returns a boolean value.
okay bestie i know, the name in that sentence looks sus β i'm just telling you what the page says, word for word, no edits from me π it returns a boolean value, that's the tea. π
π SEE ALSO π
tickit_rect_init_sized(3)tickit_rect_init_bounded(3)tickit_rect_contains(3)tickit_rect_intersect(3)tickit_rect(7)tickit(7)
and that's the whole page bestie, we ate π
β¨ this came to you from the Library Functions Manual, TICKIT_RECT_INTERSECTS(3), section 3, no date listed on this one so i can't give you a timestamp, just pure library-functions-manual energy π§π go forth and check your rectangle overlaps, ily, bye π«Ά
π¦ where this page comes from
- alpine 3.24: libtickit-doc 0.4.6-r0 Β· MIT
- debian bookworm: libtickit-dev 0.4.3-1 Β· MIT
- debian trixie: libtickit-dev 0.4.3-2 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- nixos 26.05: libtickit 0.4.5
- nixpkgs unstable: libtickit 0.4.6
- ubuntu jammy: libtickit-dev 0.4.1-1 Β· MIT
- ubuntu noble: libtickit-dev 0.4.3-1.1build1 Β· MIT
- ubuntu questing: libtickit-dev 0.4.3-2
- ubuntu resolute: libtickit-dev 0.4.3-2build1 Β· MIT
- ubuntu stonking: libtickit-dev 0.4.3-2build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms