summaryrefslogtreecommitdiff
path: root/basegfx/inc/basegfx/vector
diff options
context:
space:
mode:
authorArmin Weiss <aw@openoffice.org>2003-11-05 11:25:58 +0000
committerArmin Weiss <aw@openoffice.org>2003-11-05 11:25:58 +0000
commitc3663a687ccc9365b2b4eb4a3950b8d94c2d6ea7 (patch)
treec47ce5e59d718d5f772121000a356ef523662b17 /basegfx/inc/basegfx/vector
parent571971699571e0baf9710ddf076ebf27aebb548d (diff)
Added PolyPolygonTools, Added PolygonTool functionality, changed bool to sal_Bool
Diffstat (limited to 'basegfx/inc/basegfx/vector')
-rw-r--r--basegfx/inc/basegfx/vector/b2dvector.hxx44
-rw-r--r--basegfx/inc/basegfx/vector/b3dvector.hxx10
2 files changed, 27 insertions, 27 deletions
diff --git a/basegfx/inc/basegfx/vector/b2dvector.hxx b/basegfx/inc/basegfx/vector/b2dvector.hxx
index cd7a2e2f5309..1766a3d4ca0e 100644
--- a/basegfx/inc/basegfx/vector/b2dvector.hxx
+++ b/basegfx/inc/basegfx/vector/b2dvector.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: b2dvector.hxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: aw $ $Date: 2003-10-31 10:13:25 $
+ * last change: $Author: aw $ $Date: 2003-11-05 12:25:46 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -76,6 +76,20 @@ namespace basegfx
namespace vector
{
+ /** Descriptor for the mathematical orientations of two 2D Vectors
+ */
+ enum B2DVectorOrientation
+ {
+ /// mathematically positive oriented
+ ORIENTATION_POSITIVE = 0,
+
+ /// mathematically negative oriented
+ ORIENTATION_NEGATIVE,
+
+ /// mathematically neutral, thus parallel
+ ORIENTATION_NEUTRAL
+ };
+
/** Base Point class with two double values
This class derives all operators and common handling for
@@ -87,20 +101,6 @@ namespace basegfx
class B2DVector : public tuple::B2DTuple
{
public:
- /** Descriptor for the mathematical orientations of two 2D Vectors
- */
- enum B2DVectorOrientation
- {
- /// mathematically positive oriented
- POSITIVE = 0,
-
- /// mathematically negative oriented
- NEGATIVE,
-
- /// mathematically neutral, thus parallel
- NEUTRAL
- };
-
/** Create a 2D Vector
@param fVal
@@ -171,10 +171,10 @@ namespace basegfx
/** Test if this 2D Vector is normalized
@return
- true if lenth of vector is equal to 1.0
- false else
+ sal_True if lenth of vector is equal to 1.0
+ sal_False else
*/
- bool isNormalized() const;
+ sal_Bool isNormalized() const;
/** Calculate the Scalar with another 2D Vector
@@ -210,7 +210,7 @@ namespace basegfx
@return
The mathematical Orientation of the two involved 2D Vectors
*/
- B2DVector::B2DVectorOrientation getOrientation( const B2DVector& rVecA, const B2DVector& rVecB );
+ B2DVectorOrientation getOrientation( const B2DVector& rVecA, const B2DVector& rVecB );
/** Calculate a perpendicular 2D Vector to the given one
@@ -233,10 +233,10 @@ namespace basegfx
The second 2D Vector
@return
- bool if the two values are parallel. Also true if
+ sal_Bool if the two values are parallel. Also sal_True if
one of the vectors is empty.
*/
- bool areParallel( const B2DVector& rVecA, const B2DVector& rVecB );
+ sal_Bool areParallel( const B2DVector& rVecA, const B2DVector& rVecB );
/** Transform vector by given transformation matrix.
diff --git a/basegfx/inc/basegfx/vector/b3dvector.hxx b/basegfx/inc/basegfx/vector/b3dvector.hxx
index 9e8629f1bbfc..ec153104981e 100644
--- a/basegfx/inc/basegfx/vector/b3dvector.hxx
+++ b/basegfx/inc/basegfx/vector/b3dvector.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: b3dvector.hxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: aw $ $Date: 2003-10-31 10:13:26 $
+ * last change: $Author: aw $ $Date: 2003-11-05 12:25:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -222,10 +222,10 @@ namespace basegfx
/** Test if this 3D Vector is normalized
@return
- true if lenth of vector is equal to 1.0
- false else
+ sal_True if lenth of vector is equal to 1.0
+ sal_False else
*/
- bool isNormalized() const
+ sal_Bool isNormalized() const
{
const double fOne(1.0);
const double fScalar(scalar(*this));