COIN-OR::LEMON - Graph Library

Changeset 1102:100c8d5ee36b in lemon-0.x


Ignore:
Timestamp:
01/28/05 10:04:34 (20 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1501
Message:

Functions to query height/width of a BoundingBox?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/lemon/xy.h

    r1083 r1102  
    244244      };
    245245
     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
    246256      ///Checks whether a point is inside a bounding box
    247257      bool inside(const xy<T>& u){
Note: See TracChangeset for help on using the changeset viewer.