equal
deleted
inserted
replaced
241 ///Gives back the right side of the box (if the bounding box is empty, then the return value is not defined) |
241 ///Gives back the right side of the box (if the bounding box is empty, then the return value is not defined) |
242 T right() const { |
242 T right() const { |
243 return top_right.x; |
243 return top_right.x; |
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 ///Checks whether a point is inside a bounding box |
256 ///Checks whether a point is inside a bounding box |
247 bool inside(const xy<T>& u){ |
257 bool inside(const xy<T>& u){ |
248 if (_empty) |
258 if (_empty) |
249 return false; |
259 return false; |
250 else{ |
260 else{ |