mirror of
https://github.com/0intro/wmii
synced 2024-11-25 23:30:24 +03:00
13 lines
297 B
C
13 lines
297 B
C
/* Copyright ©2006-2010 Kris Maglione <maglione.k at Gmail>
|
|
* See LICENSE file for license details.
|
|
*/
|
|
#include <stuff/geom.h>
|
|
|
|
bool
|
|
rect_intersect_p(Rectangle r, Rectangle r2) {
|
|
return r.min.x <= r2.max.x
|
|
&& r.max.x >= r2.min.x
|
|
&& r.min.y <= r2.max.y
|
|
&& r.max.y >= r2.min.y;
|
|
}
|