23 #ifndef _LAX_INTRECTANGLE_H
24 #define _LAX_INTRECTANGLE_H
35 int pointIsIn(
int xx,
int yy) {
return xx>=x && xx<x+width && yy>=y && yy<y+height; }
37 IntRectangle(
int nx,
int ny,
int nw,
int nh) { x=nx; y=ny; width=nw; height=nh; }
46 double pointIsIn(
double xx,
double yy) {
return xx>=x && xx<x+width && yy>=y && yy<y+height; }
48 DoubleRectangle(
double nx,
double ny,
double nw,
double nh) { x=nx; y=ny; width=nw; height=nh; }