Changeset 1045:1bf336c63f25 in lemon0.x for src/lemon
 Timestamp:
 01/04/05 18:06:20 (17 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@1439
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

src/lemon/xy.h
r987 r1045 196 196 }; 197 197 198 ///Gives back the bottom right corner (if the bounding box is empty, then the return value is not defined) 199 xy<T> bottomRight() const { 200 return xy<T>(top_right.x,bottom_left.y); 201 }; 202 203 ///Gives back the top left corner (if the bounding box is empty, then the return value is not defined) 204 xy<T> topLeft() const { 205 return xy<T>(bottom_left.x,top_right.y); 206 }; 207 208 ///Gives back the bottom of the box (if the bounding box is empty, then the return value is not defined) 209 T bottom() const { 210 return bottom_left.y; 211 }; 212 213 ///Gives back the top of the box (if the bounding box is empty, then the return value is not defined) 214 T top() const { 215 return top_right.y; 216 }; 217 218 ///Gives back the left side of the box (if the bounding box is empty, then the return value is not defined) 219 T left() const { 220 return bottom_left.x; 221 }; 222 223 ///Gives back the right side of the box (if the bounding box is empty, then the return value is not defined) 224 T right() const { 225 return top_right.x; 226 }; 227 198 228 ///Checks whether a point is inside a bounding box 199 229 bool inside(const xy<T>& u){
Note: See TracChangeset
for help on using the changeset viewer.