diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2007-12-23 21:17:42 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2007-12-23 21:17:42 +0000 |
| commit | b5b3e63ac4f274288247555f6caaa3ee91327568 (patch) | |
| tree | b7411a27ca946ac2124bce3bff677ac1801ca939 /src/2geom/d2.h | |
| parent | update to latest 2geom (fixed 2 bugs :)) (diff) | |
| download | inkscape-b5b3e63ac4f274288247555f6caaa3ee91327568.tar.gz inkscape-b5b3e63ac4f274288247555f6caaa3ee91327568.zip | |
update to latest 2geom, bugs be gone!
(bzr r4285)
Diffstat (limited to 'src/2geom/d2.h')
| -rw-r--r-- | src/2geom/d2.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/2geom/d2.h b/src/2geom/d2.h index 47355eb60..3becc813d 100644 --- a/src/2geom/d2.h +++ b/src/2geom/d2.h @@ -68,6 +68,10 @@ class D2{ boost::function_requires<FragmentConcept<T> >(); return f[X].isZero() && f[Y].isZero(); } + bool isConstant() const { + boost::function_requires<FragmentConcept<T> >(); + return f[X].isConstant() && f[Y].isConstant(); + } bool isFinite() const { boost::function_requires<FragmentConcept<T> >(); return f[X].isFinite() && f[Y].isFinite(); |
