diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2015-08-16 23:36:06 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2015-08-17 06:30:01 +0000 |
commit | 5109114856898a67f0538a2c04a73d41b0f2fc78 (patch) | |
tree | 427a776875ab809075699efb995eb9aeb837ca42 /tools | |
parent | ef46917ff3163d3fdd5152bda5d16c4503b6ab69 (diff) |
Put Line under tools namespace
Change-Id: I7442848951c0d4579fb2a2a3eef3bfed7135aac4
Reviewed-on: https://gerrit.libreoffice.org/17791
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/generic/line.cxx | 7 |
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: */ |