summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/source/generic/line.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/source/generic/line.cxx b/tools/source/generic/line.cxx
index f84003cb6e00..597b783f3523 100644
--- a/tools/source/generic/line.cxx
+++ b/tools/source/generic/line.cxx
@@ -24,6 +24,9 @@
#include <cstdlib>
#include <math.h>
+namespace tools
+{
+
double Line::GetLength() const
{
return hypot( maStart.X() - maEnd.X(), maStart.Y() - maEnd.Y() );
@@ -46,7 +49,7 @@ bool Line::Intersection( const Line& rLine, Point& rIntersection ) const
return bRet;
}
-bool Line::Intersection( const Line& rLine, double& rIntersectionX, double& rIntersectionY ) const
+bool Line::Intersection( const tools::Line& rLine, double& rIntersectionX, double& rIntersectionY ) const
{
const double fAx = maEnd.X() - maStart.X();
const double fAy = maEnd.Y() - maStart.Y();
@@ -134,4 +137,6 @@ double Line::GetDistance( const double& rPtX, const double& rPtY ) const
return fDist;
}
+} //namespace tools
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */