home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
FSGFX.ZIP
/
PTINRECT.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-03-07
|
219b
|
12 lines
/* ptinrect.c */
/* is the point in the rectangle? */
#include "mygraph.h"
int ptinrect(struct point pt,struct rect r)
{
return pt.x >= r.pt1.x && pt.x < r.pt2.x &&
pt.y >= r.pt1.y && pt.y < r.pt2.y;
}