diff -r f97380557656 -r 1bf336c63f25 src/lemon/xy.h --- a/src/lemon/xy.h Tue Jan 04 17:05:20 2005 +0000 +++ b/src/lemon/xy.h Tue Jan 04 17:06:20 2005 +0000 @@ -195,6 +195,36 @@ return top_right; }; + ///Gives back the bottom right corner (if the bounding box is empty, then the return value is not defined) + xy bottomRight() const { + return xy(top_right.x,bottom_left.y); + }; + + ///Gives back the top left corner (if the bounding box is empty, then the return value is not defined) + xy topLeft() const { + return xy(bottom_left.x,top_right.y); + }; + + ///Gives back the bottom of the box (if the bounding box is empty, then the return value is not defined) + T bottom() const { + return bottom_left.y; + }; + + ///Gives back the top of the box (if the bounding box is empty, then the return value is not defined) + T top() const { + return top_right.y; + }; + + ///Gives back the left side of the box (if the bounding box is empty, then the return value is not defined) + T left() const { + return bottom_left.x; + }; + + ///Gives back the right side of the box (if the bounding box is empty, then the return value is not defined) + T right() const { + return top_right.x; + }; + ///Checks whether a point is inside a bounding box bool inside(const xy& u){ if (_empty)