equal
deleted
inserted
replaced
193 ///Gives back the top right corner (if the bounding box is empty, then the return value is not defined) |
193 ///Gives back the top right corner (if the bounding box is empty, then the return value is not defined) |
194 xy<T> topRight() const { |
194 xy<T> topRight() const { |
195 return top_right; |
195 return top_right; |
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 ///Checks whether a point is inside a bounding box |
228 ///Checks whether a point is inside a bounding box |
199 bool inside(const xy<T>& u){ |
229 bool inside(const xy<T>& u){ |
200 if (_empty) |
230 if (_empty) |
201 return false; |
231 return false; |
202 else{ |
232 else{ |