| 31 | double dwidth(const drectangle& r) { return r.width(); } |
| 32 | double dheight(const drectangle& r) { return r.height(); } |
| 33 | double darea(const drectangle& r) { return r.area(); } |
| 34 | |
| 35 | template <typename rect_type> |
| 36 | bool is_empty(const rect_type& r) { return r.is_empty(); } |