Changeset 1102:100c8d5ee36b in lemon-0.x
- Timestamp:
- 01/28/05 10:04:34 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1501
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/lemon/xy.h
r1083 r1102 244 244 }; 245 245 246 ///Gives back the height of the box (if the bounding box is empty, then the return value is not defined) 247 T height() const { 248 return top_right.y-bottom_left.y; 249 }; 250 251 ///Gives back the width of the box (if the bounding box is empty, then the return value is not defined) 252 T width() const { 253 return top_right.x-bottom_left.x; 254 }; 255 246 256 ///Checks whether a point is inside a bounding box 247 257 bool inside(const xy<T>& u){
Note: See TracChangeset
for help on using the changeset viewer.