Function mupdf_sys::fz_union_rect
source · pub unsafe extern "C" fn fz_union_rect(
a: fz_rect,
b: fz_rect
) -> fz_rect
Expand description
Compute union of two rectangles.
Given two rectangles, update the first to be the smallest axis-aligned rectangle that encompasses both given rectangles. If either rectangle is infinite then the union is also infinite. If either rectangle is empty then the union is simply the non-empty rectangle. Should both rectangles be empty, then the union is also empty.