summaryrefslogtreecommitdiff
path: root/include/libnsfb_plot_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libnsfb_plot_util.h')
-rw-r--r--include/libnsfb_plot_util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libnsfb_plot_util.h b/include/libnsfb_plot_util.h
index a1b0159..ee97b00 100644
--- a/include/libnsfb_plot_util.h
+++ b/include/libnsfb_plot_util.h
@@ -37,4 +37,12 @@ bool nsfb_plot_clip_line(const nsfb_bbox_t * restrict clip, nsfb_bbox_t * restri
bool nsfb_plot_clip_line_ctx(nsfb_t *nsfb, nsfb_bbox_t * restrict line);
+/** Obtain a bounding box which is the superset of two source boxes.
+ *
+ */
+bool nsfb_plot_add_rect(const nsfb_bbox_t *box1, const nsfb_bbox_t *box2, nsfb_bbox_t *result);
+
+/** Find if two boxes intersect. */
+bool nsfb_plot_bbox_intersect(const nsfb_bbox_t *box1, const nsfb_bbox_t *box2);
+
#endif /* _LIBNSFB_PLOT_UTIL_H */