diff options
Diffstat (limited to 'basegfx/inc/basegfx/vector')
-rw-r--r-- | basegfx/inc/basegfx/vector/b2dsize.hxx | 2 | ||||
-rw-r--r-- | basegfx/inc/basegfx/vector/b2dvector.hxx | 60 | ||||
-rw-r--r-- | basegfx/inc/basegfx/vector/b2enums.hxx | 26 | ||||
-rw-r--r-- | basegfx/inc/basegfx/vector/b2isize.hxx | 2 | ||||
-rw-r--r-- | basegfx/inc/basegfx/vector/b2ivector.hxx | 54 | ||||
-rw-r--r-- | basegfx/inc/basegfx/vector/b3dsize.hxx | 2 | ||||
-rw-r--r-- | basegfx/inc/basegfx/vector/b3dvector.hxx | 60 | ||||
-rw-r--r-- | basegfx/inc/basegfx/vector/b3isize.hxx | 2 | ||||
-rw-r--r-- | basegfx/inc/basegfx/vector/b3ivector.hxx | 60 |
9 files changed, 134 insertions, 134 deletions
diff --git a/basegfx/inc/basegfx/vector/b2dsize.hxx b/basegfx/inc/basegfx/vector/b2dsize.hxx index 7af1d3b2ea84..4681a30405b8 100644 --- a/basegfx/inc/basegfx/vector/b2dsize.hxx +++ b/basegfx/inc/basegfx/vector/b2dsize.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/basegfx/inc/basegfx/vector/b2dvector.hxx b/basegfx/inc/basegfx/vector/b2dvector.hxx index b2efaa52f5f2..109145b556d6 100644 --- a/basegfx/inc/basegfx/vector/b2dvector.hxx +++ b/basegfx/inc/basegfx/vector/b2dvector.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -48,73 +48,73 @@ namespace basegfx */ class B2DVector : public ::basegfx::B2DTuple { - public: - /** Create a 2D Vector + public: + /** Create a 2D Vector The vector is initialized to (0.0, 0.0) */ - B2DVector() - : B2DTuple() + B2DVector() + : B2DTuple() {} - /** Create a 2D Vector + /** Create a 2D Vector @param fX This parameter is used to initialize the X-coordinate of the 2D Vector. - + @param fY This parameter is used to initialize the Y-coordinate of the 2D Vector. */ - B2DVector(double fX, double fY) - : B2DTuple(fX, fY) + B2DVector(double fX, double fY) + : B2DTuple(fX, fY) {} - /** Create a copy of a 2D Vector + /** Create a copy of a 2D Vector @param rVec The 2D Vector which will be copied. */ - B2DVector(const B2DVector& rVec) - : B2DTuple(rVec) + B2DVector(const B2DVector& rVec) + : B2DTuple(rVec) {} - /** Create a copy of a 2D Vector + /** Create a copy of a 2D Vector @param rVec The 2D Vector which will be copied. */ - B2DVector(const ::basegfx::B2IVector& rVec) - : B2DTuple(rVec) + B2DVector(const ::basegfx::B2IVector& rVec) + : B2DTuple(rVec) {} /** constructor with tuple to allow copy-constructing from B2DTuple-based classes */ - B2DVector(const ::basegfx::B2DTuple& rTuple) - : B2DTuple(rTuple) + B2DVector(const ::basegfx::B2DTuple& rTuple) + : B2DTuple(rTuple) {} - ~B2DVector() + ~B2DVector() {} /** *=operator to allow usage from B2DVector, too */ - B2DVector& operator*=( const B2DVector& rPnt ) - { + B2DVector& operator*=( const B2DVector& rPnt ) + { mfX *= rPnt.mfX; - mfY *= rPnt.mfY; - return *this; + mfY *= rPnt.mfY; + return *this; } /** *=operator to allow usage from B2DVector, too */ - B2DVector& operator*=(double t) - { - mfX *= t; - mfY *= t; - return *this; + B2DVector& operator*=(double t) + { + mfX *= t; + mfY *= t; + return *this; } /** assignment operator to allow assigning the results @@ -195,7 +195,7 @@ namespace basegfx static const B2DVector& getEmptyVector(); }; - + // external operators ////////////////////////////////////////////////////////////////////////// @@ -250,14 +250,14 @@ namespace basegfx bool areParallel( const B2DVector& rVecA, const B2DVector& rVecB ); /** Transform vector by given transformation matrix. - + Since this is a vector, translational components of the matrix are disregarded. */ B2DVector operator*( const B2DHomMatrix& rMat, const B2DVector& rVec ); /** Test continuity between given vectors. - + The two given vectors are assumed to describe control points on a common point. Calculate if there is a continuity between them. */ diff --git a/basegfx/inc/basegfx/vector/b2enums.hxx b/basegfx/inc/basegfx/vector/b2enums.hxx index f364c8e1d51d..7159d3594676 100644 --- a/basegfx/inc/basegfx/vector/b2enums.hxx +++ b/basegfx/inc/basegfx/vector/b2enums.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -33,43 +33,43 @@ namespace basegfx { - /** Descriptor for the mathematical orientations of two 2D Vectors + /** Descriptor for the mathematical orientations of two 2D Vectors */ enum B2VectorOrientation { /// mathematically positive oriented ORIENTATION_POSITIVE = 0, - + /// mathematically negative oriented ORIENTATION_NEGATIVE, - + /// mathematically neutral, thus parallel ORIENTATION_NEUTRAL }; - /** Descriptor for the mathematical continuity of two 2D Vectors + /** Descriptor for the mathematical continuity of two 2D Vectors */ enum B2VectorContinuity { /// none CONTINUITY_NONE = 0, - + /// mathematically negative oriented CONTINUITY_C1, - + /// mathematically neutral, thus parallel CONTINUITY_C2 }; - /** Descriptor for possible line joins between two line segments + /** Descriptor for possible line joins between two line segments */ enum B2DLineJoin { - B2DLINEJOIN_NONE, // no rounding - B2DLINEJOIN_MIDDLE, // calc middle value between joints - B2DLINEJOIN_BEVEL, // join edges with line - B2DLINEJOIN_MITER, // extend till cut - B2DLINEJOIN_ROUND // create arc + B2DLINEJOIN_NONE, // no rounding + B2DLINEJOIN_MIDDLE, // calc middle value between joints + B2DLINEJOIN_BEVEL, // join edges with line + B2DLINEJOIN_MITER, // extend till cut + B2DLINEJOIN_ROUND // create arc }; } // end of namespace basegfx diff --git a/basegfx/inc/basegfx/vector/b2isize.hxx b/basegfx/inc/basegfx/vector/b2isize.hxx index a1738548742f..e904513dde8a 100644 --- a/basegfx/inc/basegfx/vector/b2isize.hxx +++ b/basegfx/inc/basegfx/vector/b2isize.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/basegfx/inc/basegfx/vector/b2ivector.hxx b/basegfx/inc/basegfx/vector/b2ivector.hxx index 8327f9236d96..1b32569ec675 100644 --- a/basegfx/inc/basegfx/vector/b2ivector.hxx +++ b/basegfx/inc/basegfx/vector/b2ivector.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -47,64 +47,64 @@ namespace basegfx */ class B2IVector : public ::basegfx::B2ITuple { - public: - /** Create a 2D Vector + public: + /** Create a 2D Vector The vector is initialized to (0, 0) */ - B2IVector() - : B2ITuple() + B2IVector() + : B2ITuple() {} - /** Create a 2D Vector + /** Create a 2D Vector @param nX This parameter is used to initialize the X-coordinate of the 2D Vector. - + @param nY This parameter is used to initialize the Y-coordinate of the 2D Vector. */ - B2IVector(sal_Int32 nX, sal_Int32 nY) - : B2ITuple(nX, nY) + B2IVector(sal_Int32 nX, sal_Int32 nY) + : B2ITuple(nX, nY) {} - /** Create a copy of a 2D Vector + /** Create a copy of a 2D Vector @param rVec The 2D Vector which will be copied. */ - B2IVector(const B2IVector& rVec) - : B2ITuple(rVec) + B2IVector(const B2IVector& rVec) + : B2ITuple(rVec) {} /** constructor with tuple to allow copy-constructing from B2ITuple-based classes */ - B2IVector(const ::basegfx::B2ITuple& rTuple) - : B2ITuple(rTuple) + B2IVector(const ::basegfx::B2ITuple& rTuple) + : B2ITuple(rTuple) {} - ~B2IVector() + ~B2IVector() {} /** *=operator to allow usage from B2IVector, too */ - B2IVector& operator*=( const B2IVector& rPnt ) - { + B2IVector& operator*=( const B2IVector& rPnt ) + { mnX *= rPnt.mnX; - mnY *= rPnt.mnY; - return *this; + mnY *= rPnt.mnY; + return *this; } /** *=operator to allow usage from B2IVector, too */ - B2IVector& operator*=(sal_Int32 t) - { - mnX *= t; - mnY *= t; - return *this; + B2IVector& operator*=(sal_Int32 t) + { + mnX *= t; + mnY *= t; + return *this; } /** assignment operator to allow assigning the results @@ -171,7 +171,7 @@ namespace basegfx static const B2IVector& getEmptyVector(); }; - + // external operators ////////////////////////////////////////////////////////////////////////// @@ -213,14 +213,14 @@ namespace basegfx bool areParallel( const B2IVector& rVecA, const B2IVector& rVecB ); /** Transform vector by given transformation matrix. - + Since this is a vector, translational components of the matrix are disregarded. */ B2IVector operator*( const B2DHomMatrix& rMat, const B2IVector& rVec ); /** Test continuity between given vectors. - + The two given vectors are assumed to describe control points on a common point. Calculate if there is a continuity between them. */ diff --git a/basegfx/inc/basegfx/vector/b3dsize.hxx b/basegfx/inc/basegfx/vector/b3dsize.hxx index 757314cadcf1..ab1fa4d5a4f4 100644 --- a/basegfx/inc/basegfx/vector/b3dsize.hxx +++ b/basegfx/inc/basegfx/vector/b3dsize.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/basegfx/inc/basegfx/vector/b3dvector.hxx b/basegfx/inc/basegfx/vector/b3dvector.hxx index 17c61b0437e2..9942e19569a8 100644 --- a/basegfx/inc/basegfx/vector/b3dvector.hxx +++ b/basegfx/inc/basegfx/vector/b3dvector.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -49,80 +49,80 @@ namespace basegfx class B3DVector : public ::basegfx::B3DTuple { public: - /** Create a 3D Vector + /** Create a 3D Vector The vector is initialized to (0.0, 0.0, 0.0) */ B3DVector() - : B3DTuple() + : B3DTuple() {} - /** Create a 3D Vector + /** Create a 3D Vector @param fX This parameter is used to initialize the X-coordinate of the 3D Vector. - + @param fY This parameter is used to initialize the Y-coordinate of the 3D Vector. - + @param fZ This parameter is used to initialize the Z-coordinate of the 3D Vector. */ B3DVector(double fX, double fY, double fZ) - : B3DTuple(fX, fY, fZ) + : B3DTuple(fX, fY, fZ) {} - /** Create a copy of a 3D Vector + /** Create a copy of a 3D Vector @param rVec The 3D Vector which will be copied. */ - B3DVector(const B3DVector& rVec) - : B3DTuple(rVec) + B3DVector(const B3DVector& rVec) + : B3DTuple(rVec) {} /** constructor with tuple to allow copy-constructing from B3DTuple-based classes */ - B3DVector(const ::basegfx::B3DTuple& rTuple) - : B3DTuple(rTuple) + B3DVector(const ::basegfx::B3DTuple& rTuple) + : B3DTuple(rTuple) {} - ~B3DVector() + ~B3DVector() {} /** *=operator to allow usage from B3DVector, too */ - B3DVector& operator*=( const B3DVector& rPnt ) - { + B3DVector& operator*=( const B3DVector& rPnt ) + { mfX *= rPnt.mfX; - mfY *= rPnt.mfY; - mfZ *= rPnt.mfZ; - return *this; + mfY *= rPnt.mfY; + mfZ *= rPnt.mfZ; + return *this; } /** *=operator to allow usage from B3DVector, too */ - B3DVector& operator*=(double t) - { - mfX *= t; - mfY *= t; - mfZ *= t; - return *this; + B3DVector& operator*=(double t) + { + mfX *= t; + mfY *= t; + mfZ *= t; + return *this; } /** assignment operator to allow assigning the results of B3DTuple calculations */ - B3DVector& operator=( const ::basegfx::B3DTuple& rVec ) - { + B3DVector& operator=( const ::basegfx::B3DTuple& rVec ) + { mfX = rVec.getX(); - mfY = rVec.getY(); - mfZ = rVec.getZ(); - return *this; + mfY = rVec.getY(); + mfZ = rVec.getZ(); + return *this; } /** Calculate the length of this 3D Vector @@ -309,7 +309,7 @@ namespace basegfx bool areParallel( const B3DVector& rVecA, const B3DVector& rVecB ); /** Transform vector by given transformation matrix. - + Since this is a vector, translational components of the matrix are disregarded. */ diff --git a/basegfx/inc/basegfx/vector/b3isize.hxx b/basegfx/inc/basegfx/vector/b3isize.hxx index 5aa85d904751..f22a46a11a5e 100644 --- a/basegfx/inc/basegfx/vector/b3isize.hxx +++ b/basegfx/inc/basegfx/vector/b3isize.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/basegfx/inc/basegfx/vector/b3ivector.hxx b/basegfx/inc/basegfx/vector/b3ivector.hxx index 5cbd869cad5f..23ebc6bcca4a 100644 --- a/basegfx/inc/basegfx/vector/b3ivector.hxx +++ b/basegfx/inc/basegfx/vector/b3ivector.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -47,80 +47,80 @@ namespace basegfx class B3IVector : public ::basegfx::B3ITuple { public: - /** Create a 3D Vector + /** Create a 3D Vector The vector is initialized to (0, 0, 0) */ B3IVector() - : B3ITuple() + : B3ITuple() {} - /** Create a 3D Vector + /** Create a 3D Vector @param nX This parameter is used to initialize the X-coordinate of the 3D Vector. - + @param nY This parameter is used to initialize the Y-coordinate of the 3D Vector. - + @param nZ This parameter is used to initialize the Z-coordinate of the 3D Vector. */ B3IVector(sal_Int32 nX, sal_Int32 nY, sal_Int32 nZ) - : B3ITuple(nX, nY, nZ) + : B3ITuple(nX, nY, nZ) {} - /** Create a copy of a 3D Vector + /** Create a copy of a 3D Vector @param rVec The 3D Vector which will be copied. */ - B3IVector(const B3IVector& rVec) - : B3ITuple(rVec) + B3IVector(const B3IVector& rVec) + : B3ITuple(rVec) {} /** constructor with tuple to allow copy-constructing from B3ITuple-based classes */ - B3IVector(const ::basegfx::B3ITuple& rTuple) - : B3ITuple(rTuple) + B3IVector(const ::basegfx::B3ITuple& rTuple) + : B3ITuple(rTuple) {} - ~B3IVector() + ~B3IVector() {} /** *=operator to allow usage from B3IVector, too */ - B3IVector& operator*=( const B3IVector& rPnt ) - { + B3IVector& operator*=( const B3IVector& rPnt ) + { mnX *= rPnt.mnX; - mnY *= rPnt.mnY; - mnZ *= rPnt.mnZ; - return *this; + mnY *= rPnt.mnY; + mnZ *= rPnt.mnZ; + return *this; } /** *=operator to allow usage from B3IVector, too */ - B3IVector& operator*=(sal_Int32 t) - { - mnX *= t; - mnY *= t; - mnZ *= t; - return *this; + B3IVector& operator*=(sal_Int32 t) + { + mnX *= t; + mnY *= t; + mnZ *= t; + return *this; } /** assignment operator to allow assigning the results of B3ITuple calculations */ - B3IVector& operator=( const ::basegfx::B3ITuple& rVec ) - { + B3IVector& operator=( const ::basegfx::B3ITuple& rVec ) + { mnX = rVec.getX(); - mnY = rVec.getY(); - mnZ = rVec.getZ(); - return *this; + mnY = rVec.getY(); + mnZ = rVec.getZ(); + return *this; } /** Calculate the length of this 3D Vector @@ -230,7 +230,7 @@ namespace basegfx ////////////////////////////////////////////////////////////////////////// /** Transform vector by given transformation matrix. - + Since this is a vector, translational components of the matrix are disregarded. */ |