From b001ff129865a183eab89f310e9b72ae8d1f68ca Mon Sep 17 00:00:00 2001 From: Ingrid Halama Date: Tue, 4 Nov 2003 09:23:04 +0000 Subject: added ==operator for Position3D --- chart2/source/inc/CommonConverters.hxx | 10 ++++++++-- chart2/source/tools/CommonConverters.cxx | 12 ++++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) (limited to 'chart2') 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 @@ -210,6 +210,12 @@ com::sun::star::drawing::Direction3D operator*( const com::sun::star::drawing::Direction3D& rDirection , double fFraction); +//----------------------------------------------------------------------------- +/** Position3D == Position3D ? +*/ +bool operator==( const com::sun::star::drawing::Position3D& rPos1 + , const com::sun::star::drawing::Position3D& rPos2); + //----------------------------------------------------------------------------- /** Sequence -> Vector3D */ 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"); -- cgit