Changeset 172 for trunk/nv/position.hh
- Timestamp:
- 07/25/13 14:37:24 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nv/position.hh
r132 r172 41 41 * @param p The position to assign the rectangle to. 42 42 */ 43 rectangle( position p ) : ul(p), lr(p) {}43 explicit rectangle( position p ) : ul(p), lr(p) {} 44 44 45 45 /** … … 152 152 153 153 /** 154 * Gets the area of the rectangle. 155 * 156 * @returns The area of the rectangle, including the edge 157 */ 158 value_type get_enclosed_area() const { return (lr.y - ul.y + 1) * (lr.x - ul.x + 1); } 159 160 /** 154 161 * Checks to see if the rectangle is backwards. 155 162 *
Note: See TracChangeset
for help on using the changeset viewer.