From: pjrm Date: Sun, 20 May 2007 07:40:16 +0000 (+0000) Subject: doc X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0788b1ecc737029f0ed478e247b89bdfdeffa836;p=inkscape.git doc --- 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(epsilon) || isEmpty(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))