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 🌈


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 🫢