summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 69a2a17)
raw | patch | inline | side by side (parent: 69a2a17)
author | ishmal <ishmal@users.sourceforge.net> | |
Thu, 1 Jun 2006 05:05:22 +0000 (05:05 +0000) | ||
committer | ishmal <ishmal@users.sourceforge.net> | |
Thu, 1 Jun 2006 05:05:22 +0000 (05:05 +0000) |
src/libnr/nr-rect.h | patch | blob | history |
diff --git a/src/libnr/nr-rect.h b/src/libnr/nr-rect.h
index 219fbd1ac36058c02881063b9255c90e71d5b643..767eab90243fdde17bc77723453f1506a3ba46d8 100644 (file)
--- a/src/libnr/nr-rect.h
+++ b/src/libnr/nr-rect.h
* points. Infinities are also permitted. */
class Rect {
public:
+ Rect() : _min(0.0, 0.0), _max(0.0, 0.0) {}
Rect(NRRect const &r) : _min(r.x0, r.y0), _max(r.x1, r.y1) {}
Rect(Rect const &r) : _min(r._min), _max(r._max) {}
Rect(Point const &p0, Point const &p1);
friend inline std::ostream &operator<<(std::ostream &out_file, NR::Rect const &in_rect);
private:
- Rect() {}
template <NR::Dim2 axis>
double extent() const {