src/lemon/xy.h
changeset 1120 5d8d64bde9c5
parent 1083 8043b93e5973
child 1164 80bb73097736
equal deleted inserted replaced
7:3641d203a27b 8:1d18c6b9844a
   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{