diff options
| author | Peter Moulder <peter.moulder@monash.edu> | 2007-05-20 07:40:16 +0000 |
|---|---|---|
| committer | pjrm <pjrm@users.sourceforge.net> | 2007-05-20 07:40:16 +0000 |
| commit | 1d94347ed32d2fff9c6fa07acd26e361243d4ffc (patch) | |
| tree | 75c287c150597b99cdbcef537f44e3c2a8a4a731 /src | |
| parent | Applied Yossi's patch 1721693 for bugs 1718405, 1718934, and 1720822 (diff) | |
| download | inkscape-1d94347ed32d2fff9c6fa07acd26e361243d4ffc.tar.gz inkscape-1d94347ed32d2fff9c6fa07acd26e361243d4ffc.zip | |
doc
(bzr r3031)
Diffstat (limited to 'src')
| -rw-r--r-- | src/libnr/nr-rect.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libnr/nr-rect.h b/src/libnr/nr-rect.h index 04f446487..46aff13f4 100644 --- a/src/libnr/nr-rect.h +++ b/src/libnr/nr-rect.h @@ -53,6 +53,7 @@ public: /** returns the midpoint of this rect. */ Point midpoint() const; + /** True iff either width or height is less than \a epsilon. */ bool isEmpty(double epsilon=1e-6) const { return isEmpty<X>(epsilon) || isEmpty<Y>(epsilon); } @@ -264,6 +265,7 @@ struct NRRect { #define nr_rect_d_set_empty(r) (*(r) = NR_RECT_EMPTY) #define nr_rect_l_set_empty(r) (*(r) = NR_RECT_L_EMPTY) +/** "Empty" here includes the case of zero width or zero height. */ #define nr_rect_d_test_empty(r) ((r) && NR_RECT_DFLS_TEST_EMPTY(r)) #define nr_rect_l_test_empty(r) ((r) && NR_RECT_DFLS_TEST_EMPTY(r)) |
