23 #ifndef _LAX_DOUBLEBBOX_H
24 #define _LAX_DOUBLEBBOX_H
26 #include <lax/vectors.h>
32 double minx,maxx,miny,maxy;
35 DoubleBBox(
double mix,
double max,
double miy,
double may) { minx=mix; maxx=max; miny=miy; maxy=may; }
37 virtual void clear() { minx=miny=0; maxx=maxy=-1; }
38 virtual void addtobounds(
double x,
double y);
41 virtual void addtobounds(
const double *m,
DoubleBBox *bbox);
44 virtual void setbounds(
double mix,
double max,
double miy,
double may) { minx=mix; maxx=max; miny=miy; maxy=may; }
45 virtual int validbounds() {
return maxx>=minx && maxy>=miny; }
46 virtual int intersect(
double mix,
double max,
double miy,
double may,
int settointersection=0);