summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorIngrid Halama <iha@openoffice.org>2003-11-04 09:23:04 +0000
committerIngrid Halama <iha@openoffice.org>2003-11-04 09:23:04 +0000
commitb001ff129865a183eab89f310e9b72ae8d1f68ca (patch)
treee0dd162e023993629054c71134cc5a8892338e5e /chart2
parentaf6e5259b1f718485e1b26efdc7620f34a8377fb (diff)
added ==operator for Position3D
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/inc/CommonConverters.hxx10
-rw-r--r--chart2/source/tools/CommonConverters.cxx12
2 files changed, 18 insertions, 4 deletions
diff --git a/chart2/source/inc/CommonConverters.hxx b/chart2/source/inc/CommonConverters.hxx
index 96921e39cb5c..0984b0be7212 100644
--- a/chart2/source/inc/CommonConverters.hxx
+++ b/chart2/source/inc/CommonConverters.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: CommonConverters.hxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: bm $ $Date: 2003-10-06 09:58:29 $
+ * last change: $Author: iha $ $Date: 2003-11-04 10:22:38 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -211,6 +211,12 @@ com::sun::star::drawing::Direction3D
, double fFraction);
//-----------------------------------------------------------------------------
+/** Position3D == Position3D ?
+*/
+bool operator==( const com::sun::star::drawing::Position3D& rPos1
+ , const com::sun::star::drawing::Position3D& rPos2);
+
+//-----------------------------------------------------------------------------
/** Sequence<double> -> Vector3D
*/
Vector3D SequenceToVector3D( const com::sun::star::uno::Sequence< double >& rSeq );
diff --git a/chart2/source/tools/CommonConverters.cxx b/chart2/source/tools/CommonConverters.cxx
index 53df5d1f15cf..19db20336c29 100644
--- a/chart2/source/tools/CommonConverters.cxx
+++ b/chart2/source/tools/CommonConverters.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: CommonConverters.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: bm $ $Date: 2003-10-06 09:58:32 $
+ * last change: $Author: iha $ $Date: 2003-11-04 10:23:04 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -551,6 +551,14 @@ drawing::Direction3D operator*( const drawing::Direction3D& rDirection
);
}
+bool operator==( const drawing::Position3D& rPos1
+ , const drawing::Position3D& rPos2)
+{
+ return rPos1.PositionX == rPos2.PositionX
+ && rPos1.PositionY == rPos2.PositionY
+ && rPos1.PositionZ == rPos2.PositionZ;
+}
+
Vector3D SequenceToVector3D( const uno::Sequence< double >& rSeq )
{
OSL_ENSURE(rSeq.getLength()==3,"The sequence needs to have length 3 for conversion into vector");