rect_contains_p.c (296B)
1 /* Copyright ©2006-2010 Kris Maglione <maglione.k at Gmail> 2 * See LICENSE file for license details. 3 */ 4 #include <stuff/geom.h> 5 6 bool 7 rect_contains_p(Rectangle r, Rectangle r2) { 8 return r2.min.x >= r.min.x 9 && r2.max.x <= r.max.x 10 && r2.min.y >= r.min.y 11 && r2.max.y <= r.max.y; 12 }