diff options
author | Armin Weiss <aw@openoffice.org> | 2003-11-10 10:45:52 +0000 |
---|---|---|
committer | Armin Weiss <aw@openoffice.org> | 2003-11-10 10:45:52 +0000 |
commit | ff3c6dbe35436fa508356a45b7367d4055cd6387 (patch) | |
tree | 5325d2cd5ce67961f59260d70784e083c67bdad7 /basegfx/inc/basegfx/vector/b2dvector.hxx | |
parent | e7fb8a71b60f4c6e94b4cafbe9d0badf427316e3 (diff) |
Some error corrections, some additions to polygon stuff, making PolyPolygonCutter work
Diffstat (limited to 'basegfx/inc/basegfx/vector/b2dvector.hxx')
-rw-r--r-- | basegfx/inc/basegfx/vector/b2dvector.hxx | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/basegfx/inc/basegfx/vector/b2dvector.hxx b/basegfx/inc/basegfx/vector/b2dvector.hxx index 8a7127d42ab3..91f25e436b65 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.3 $ + * $Revision: 1.4 $ * - * last change: $Author: aw $ $Date: 2003-11-06 16:30:26 $ + * last change: $Author: aw $ $Date: 2003-11-10 11:45:49 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -90,6 +90,20 @@ namespace basegfx ORIENTATION_NEUTRAL }; + /** Descriptor for the mathematical continuity of two 2D Vectors + */ + enum B2DVectorContinuity + { + /// none + CONTINUITY_NONE = 0, + + /// mathematically negative oriented + CONTINUITY_C1, + + /// mathematically neutral, thus parallel + CONTINUITY_C2 + }; + /** Base Point class with two double values This class derives all operators and common handling for @@ -244,6 +258,14 @@ namespace basegfx matrix are disregarded. */ B2DVector operator*( const matrix::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. + */ + ::basegfx::vector::B2DVectorContinuity getContinuity( const B2DVector& rBackVector, const B2DVector& rForwardVector ); + } // end of namespace vector } // end of namespace basegfx |