Skip to main content

intersect_rectangles

Function intersect_rectangles 

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

Compute the intersection of two rectangles.