summaryrefslogtreecommitdiff
path: root/include/tools/line.hxx
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2015-08-16 23:36:06 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2015-08-17 06:30:01 +0000
commit5109114856898a67f0538a2c04a73d41b0f2fc78 (patch)
tree427a776875ab809075699efb995eb9aeb837ca42 /include/tools/line.hxx
parentef46917ff3163d3fdd5152bda5d16c4503b6ab69 (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 'include/tools/line.hxx')
-rw-r--r--include/tools/line.hxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/tools/line.hxx b/include/tools/line.hxx
index 7508a8fbb468..8a0486adf3fe 100644
--- a/include/tools/line.hxx
+++ b/include/tools/line.hxx
@@ -22,6 +22,9 @@
#include <tools/toolsdllapi.h>
#include <tools/gen.hxx>
+namespace tools
+{
+
class TOOLS_DLLPUBLIC Line
{
private:
@@ -40,13 +43,15 @@ public:
double GetLength() const;
- bool Intersection( const Line& rLine, double& rIntersectionX, double& rIntersectionY ) const;
- bool Intersection( const Line& rLine, Point& rIntersection ) const;
+ bool Intersection( const tools::Line& rLine, double& rIntersectionX, double& rIntersectionY ) const;
+ bool Intersection( const tools::Line& rLine, Point& rIntersection ) const;
double GetDistance( const double& rPtX, const double& rPtY ) const;
double GetDistance( const Point& rPoint ) const { return( GetDistance( rPoint.X(), rPoint.Y() ) ); }
};
+} // namespace tools
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */