summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0a0cebf)
raw | patch | inline | side by side (parent: 0a0cebf)
author | mental <mental@users.sourceforge.net> | |
Fri, 9 Mar 2007 01:32:29 +0000 (01:32 +0000) | ||
committer | mental <mental@users.sourceforge.net> | |
Fri, 9 Mar 2007 01:32:29 +0000 (01:32 +0000) |
src/libnr/nr-rect.cpp | patch | blob | history | |
src/libnr/nr-rect.h | patch | blob | history |
diff --git a/src/libnr/nr-rect.cpp b/src/libnr/nr-rect.cpp
index 9047e4e1c53faa2762b0bffe5b22aeea695800df..3ffe06dc857ed03279abeed5631d9bd81464e63f 100644 (file)
--- a/src/libnr/nr-rect.cpp
+++ b/src/libnr/nr-rect.cpp
} else {
Rect r;
for ( int i=0 ; i < 2 ; i++ ) {
- r._min[i] = MAX(a->_min[i], b->_min[i]);
- r._max[i] = MIN(a->_max[i], b->_max[i]);
+ r._min[i] = MAX(a->min()[i], b->min()[i]);
+ r._max[i] = MIN(a->max()[i], b->max()[i]);
if ( r._min[i] > r._max[i] ) {
return Nothing();
}
diff --git a/src/libnr/nr-rect.h b/src/libnr/nr-rect.h
index 5e2332bf278315765af1a0d850e628f04e0275fc..4ae5642ae795015a614ba9ca1346f11386439d66 100644 (file)
--- a/src/libnr/nr-rect.h
+++ b/src/libnr/nr-rect.h
Point _min, _max;
friend class MaybeStorage<Rect>;
+ friend Maybe<Rect> intersection(Maybe<Rect const &>, Maybe<Rect const &>);
+ friend Rect union_bounds(Rect const &, Rect const &);
};
template <>