10 lines
166 B
C
10 lines
166 B
C
|
#include "geom.h"
|
||
|
|
||
|
bool pointInRect(point p, rect r)
|
||
|
{
|
||
|
return (r.topLeft.x < p.x
|
||
|
&& r.bottomRight.x > p.x
|
||
|
&& r.topLeft.y < p.y
|
||
|
&& r.bottomRight.y > p.y);
|
||
|
}
|