From 5109114856898a67f0538a2c04a73d41b0f2fc78 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Sun, 16 Aug 2015 23:36:06 -0500 Subject: Put Line under tools namespace Change-Id: I7442848951c0d4579fb2a2a3eef3bfed7135aac4 Reviewed-on: https://gerrit.libreoffice.org/17791 Tested-by: Jenkins Reviewed-by: Norbert Thiebaud --- tools/source/generic/line.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tools') 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 #include +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: */ -- cgit