Function graphics::math::overlap_rectangle [−][src]
pub fn overlap_rectangle<T>(
a: Rectangle<T>,
b: Rectangle<T>
) -> Option<Rectangle<T>> where
T: Float,
Computes overlap between two rectangles. The area of the overlapping rectangle is positive. A shared edge or corner is not considered overlap.