summaryrefslogtreecommitdiffstats
path: root/tools/source/generic/poly.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tools/source/generic/poly.cxx')
-rw-r--r--tools/source/generic/poly.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx
index 0a597fdff1fc..7c9ece60693b 100644
--- a/tools/source/generic/poly.cxx
+++ b/tools/source/generic/poly.cxx
@@ -639,6 +639,8 @@ void ImplPolygon::ImplCreateFlagArray()
}
}
+namespace {
+
class ImplPointFilter
{
public:
@@ -670,6 +672,8 @@ public:
ImplPolygon& get() { return maPoly; }
};
+}
+
void ImplPolygonPointFilter::Input( const Point& rPoint )
{
if ( !mnSize || (rPoint != maPoly.mxPointAry[mnSize-1]) )
@@ -687,6 +691,8 @@ void ImplPolygonPointFilter::LastPoint()
maPoly.ImplSetSize( mnSize );
};
+namespace {
+
class ImplEdgePointFilter : public ImplPointFilter
{
Point maFirstPoint;
@@ -721,6 +727,8 @@ public:
virtual void LastPoint() override;
};
+}
+
inline int ImplEdgePointFilter::VisibleSide( const Point& rPoint ) const
{
if ( mnEdge & EDGE_HORZ )
@@ -1219,6 +1227,8 @@ void Polygon::AdaptiveSubdivide( Polygon& rResult, const double d ) const
}
}
+namespace {
+
class Vector2D
{
private:
@@ -1233,6 +1243,9 @@ public:
bool IsPositive( Vector2D const & rVec ) const { return ( mfX * rVec.mfY - mfY * rVec.mfX ) >= 0.0; }
bool IsNegative( Vector2D const & rVec ) const { return !IsPositive( rVec ); }
};
+
+}
+
Vector2D& Vector2D::Normalize()
{
double fLen = Scalar( *this );