Function piston_window::math::overlap_rectangle

source ยท
pub fn overlap_rectangle<T>(a: [T; 4], b: [T; 4]) -> Option<[T; 4]>
where T: Float,
Expand description

Computes overlap between two rectangles. The area of the overlapping rectangle is positive. A shared edge or corner is not considered overlap.