mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-17 22:05:56 -05:00
util/box: introduce wlr_fbox_intersection
Signed-off-by: Loukas Agorgianitis <loukas@agorgianitis.com>
This commit is contained in:
parent
62234c5133
commit
72c31255c3
2 changed files with 36 additions and 0 deletions
|
|
@ -61,6 +61,14 @@ void wlr_box_closest_point(const struct wlr_box *box, double x, double y,
|
|||
bool wlr_box_intersection(struct wlr_box *dest, const struct wlr_box *box_a,
|
||||
const struct wlr_box *box_b);
|
||||
|
||||
/**
|
||||
* Gives the intersecting box between two struct wlr_fbox.
|
||||
*
|
||||
* Returns an empty box if the provided boxes don't intersect.
|
||||
*/
|
||||
bool wlr_fbox_intersection(struct wlr_fbox *dest, const struct wlr_fbox *box_a,
|
||||
const struct wlr_fbox *box_b);
|
||||
|
||||
/**
|
||||
* Verifies if a point is contained within the bounds of a given struct wlr_box.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue