X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Frect.h;h=735de1af3f17f590a55117ebbea8fef5e6ee0b4c;hb=5ddcf36f04cfbd10fabda4e3c5633cb27cdd4c0a;hp=1bd5805de38f1fd032ad43b64e73a9f8bb1635f3;hpb=cee5940bae97612105db8b7e1ffcf513f9d9150c;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/rect.h b/synfig-core/trunk/src/synfig/rect.h index 1bd5805..735de1a 100644 --- a/synfig-core/trunk/src/synfig/rect.h +++ b/synfig-core/trunk/src/synfig/rect.h @@ -68,16 +68,16 @@ public: Rect(const Point& min, const Point& max) { set_point(min); expand(max); } Rect(const value_type &x1,const value_type &y1) { set_point(x1,y1); } - + Rect(const value_type &x1,const value_type &y1, const value_type &x2,const value_type &y2) { set_point(x1,y1); expand(x2,y2); } - + void set_point(const Point& max) { set_point(max[0],max[1]); } - + Rect& expand(const Point& max) { expand(max[0],max[1]); return *this; } Rect& expand(const Real& r) { minx-=r; miny-=r; maxx+=r; maxy+=r; return *this; } @@ -85,21 +85,21 @@ public: Rect& expand_x(const Real& r) { minx-=r; maxx+=r; return *this; } Rect& expand_y(const Real& r) { miny-=r; maxy+=r; return *this; } - + Rect& set(const Point& min,const Point& max) { set(min[0],min[1],max[0],max[1]); return *this; } - + Point get_min()const { return Point(minx,miny); } Point get_max()const { return Point(maxx,maxy); } - + bool is_inside(const Point& x) { return x[0]>minx && x[0]miny && x[1]