diff options
author | Armin Weiss <aw@openoffice.org> | 2004-01-16 13:30:10 +0000 |
---|---|---|
committer | Armin Weiss <aw@openoffice.org> | 2004-01-16 13:30:10 +0000 |
commit | 99a300e39ace4f9bd1af8ad85ef49f35f7117fc7 (patch) | |
tree | 9ef5e2b8c9359e42cd27ca82d6614249a9474314 /basegfx/inc/basegfx/range/b3irange.hxx | |
parent | c794c5ce7ea7b11f7275a471821310dcd3dd552e (diff) |
Added == and != operators to ranges, some other goodies, too. Also changed remaining sal_Bool to bool. Renamed B(2|3)(d|i)box to ...volume.
Diffstat (limited to 'basegfx/inc/basegfx/range/b3irange.hxx')
-rw-r--r-- | basegfx/inc/basegfx/range/b3irange.hxx | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/basegfx/inc/basegfx/range/b3irange.hxx b/basegfx/inc/basegfx/range/b3irange.hxx index 5165e9f4903b..5e72987283a1 100644 --- a/basegfx/inc/basegfx/range/b3irange.hxx +++ b/basegfx/inc/basegfx/range/b3irange.hxx @@ -2,9 +2,9 @@ * * $RCSfile: b3irange.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: thb $ $Date: 2004-01-16 13:40:26 $ + * last change: $Author: aw $ $Date: 2004-01-16 14:30:06 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -146,6 +146,20 @@ namespace basegfx maRangeZ.reset(); } + bool operator==( const B3IRange& rRange ) const + { + return (maRangeX == rRange.maRangeX + && maRangeY == rRange.maRangeY + && maRangeZ == rRange.maRangeZ); + } + + bool operator!=( const B3IRange& rRange ) const + { + return (maRangeX != rRange.maRangeX + || maRangeY != rRange.maRangeY + || maRangeZ != rRange.maRangeZ); + } + void operator=(const B3IRange& rRange) { maRangeX = rRange.maRangeX; |