# Function piston_window::math::overlap_rectangle [−][src]

`pub fn overlap_rectangle<T>(a: [T; 4], b: [T; 4]) -> Option<[T; 4]> 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.