Skip to main content

unite_rectangles

Function unite_rectangles 

Source
pub fn unite_rectangles<T: Copy + PartialOrd>(
    r1: &Rect<T>,
    r2: &Rect<T>,
) -> Rect<T>
Expand description

Compute the union (bounding box) of two rectangles.