summaryrefslogtreecommitdiff
path: root/basegfx/source
diff options
context:
space:
mode:
Diffstat (limited to 'basegfx/source')
-rw-r--r--basegfx/source/vector/b2dvector.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/basegfx/source/vector/b2dvector.cxx b/basegfx/source/vector/b2dvector.cxx
index 23044076d539..ed0325b446a5 100644
--- a/basegfx/source/vector/b2dvector.cxx
+++ b/basegfx/source/vector/b2dvector.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: b2dvector.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: aw $ $Date: 2003-11-11 09:56:10 $
+ * last change: $Author: thb $ $Date: 2003-11-12 12:11:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -116,6 +116,11 @@ namespace basegfx
return((mfX * rVec.mfX) + (mfY * rVec.mfY));
}
+ double B2DVector::cross( const B2DVector& rVec ) const
+ {
+ return(mfX * rVec.getY() - mfY * rVec.getX());
+ }
+
double B2DVector::angle( const B2DVector& rVec ) const
{
return atan2(mfX * rVec.getY() - mfY * rVec.getX(),