summaryrefslogtreecommitdiff
path: root/basegfx/inc/basegfx/vector
diff options
context:
space:
mode:
authorThorsten Behrens <thb@openoffice.org>2003-11-12 11:09:52 +0000
committerThorsten Behrens <thb@openoffice.org>2003-11-12 11:09:52 +0000
commitd29fb24a43fc4d8477181c2b693e163d97c07218 (patch)
tree6fb6740004e788c9dae1f6ef9244a045771c3196 /basegfx/inc/basegfx/vector
parentdb78936286f5b9adf396e92383041b4f515b0edd (diff)
Added second adaptive subdivision method (this time with an angle differences as the stopping criterion
Diffstat (limited to 'basegfx/inc/basegfx/vector')
-rw-r--r--basegfx/inc/basegfx/vector/b2dvector.hxx21
1 files changed, 19 insertions, 2 deletions
diff --git a/basegfx/inc/basegfx/vector/b2dvector.hxx b/basegfx/inc/basegfx/vector/b2dvector.hxx
index 0735d52cd7e0..0a3a896733a0 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.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: aw $ $Date: 2003-11-11 09:56:09 $
+ * last change: $Author: thb $ $Date: 2003-11-12 12:09:51 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -200,6 +200,23 @@ namespace basegfx
*/
double scalar( const B2DVector& rVec ) const;
+ /** Calculate the length of the cross product with another 2D Vector
+
+ In 2D, returning an actual vector does not make much
+ sense here. The magnitude, although, can be readily
+ used for tasks such as angle calculations, since for
+ the returned value, the following equation holds:
+ retVal = getLength(this)*getLength(rVec)*sin(theta),
+ with theta being the angle between the two vectors.
+
+ @param rVec
+ The second 2D Vector
+
+ @return
+ The length of the cross product of the two involved 2D Vectors
+ */
+ double cross( const B2DVector& rVec ) const;
+
/** Calculate the Angle with another 2D Vector
@param rVec