summaryrefslogtreecommitdiff
path: root/basegfx/source/vector/b2dvector.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basegfx/source/vector/b2dvector.cxx')
-rw-r--r--basegfx/source/vector/b2dvector.cxx30
1 files changed, 15 insertions, 15 deletions
diff --git a/basegfx/source/vector/b2dvector.cxx b/basegfx/source/vector/b2dvector.cxx
index ad11f717fa2d..df8a1c02fbdb 100644
--- a/basegfx/source/vector/b2dvector.cxx
+++ b/basegfx/source/vector/b2dvector.cxx
@@ -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
@@ -62,16 +62,16 @@ namespace basegfx
return *this;
}
- B2DVector& B2DVector::operator=( const B2DTuple& rVec )
- {
+ B2DVector& B2DVector::operator=( const B2DTuple& rVec )
+ {
mfX = rVec.getX();
- mfY = rVec.getY();
- return *this;
+ mfY = rVec.getY();
+ return *this;
}
- double B2DVector::getLength() const
- {
+ double B2DVector::getLength() const
+ {
if(fTools::equalZero(mfX))
{
return fabs(mfY);
@@ -81,17 +81,17 @@ namespace basegfx
return fabs(mfX);
}
- return hypot( mfX, mfY );
+ return hypot( mfX, mfY );
}
- double B2DVector::scalar( const B2DVector& rVec ) const
- {
- return((mfX * rVec.mfX) + (mfY * rVec.mfY));
+ double B2DVector::scalar( const B2DVector& rVec ) const
+ {
+ return((mfX * rVec.mfX) + (mfY * rVec.mfY));
}
- double B2DVector::cross( const B2DVector& rVec ) const
- {
- return(mfX * rVec.getY() - mfY * rVec.getX());
+ double B2DVector::cross( const B2DVector& rVec ) const
+ {
+ return(mfX * rVec.getY() - mfY * rVec.getX());
}
double B2DVector::angle( const B2DVector& rVec ) const
@@ -154,7 +154,7 @@ namespace basegfx
}
B2VectorOrientation getOrientation( const B2DVector& rVecA, const B2DVector& rVecB )
- {
+ {
double fVal(rVecA.getX() * rVecB.getY() - rVecA.getY() * rVecB.getX());
if(fTools::equalZero(fVal))