From 9069e26d1fe1fbbe7bceab0bae8a186d8cdb47cc Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 31 Oct 2013 12:40:53 +0000 Subject: we need these old equal methods again i.e. revert 5c3615c1152eabfda508504c8a4c5727868acbc8 Change-Id: I7bafaabaf5b8337c3ef4fe0d9ea687924045114e --- include/basegfx/polygon/b2dpolygontools.hxx | 4 ++++ include/basegfx/polygon/b3dpolygontools.hxx | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'include') diff --git a/include/basegfx/polygon/b2dpolygontools.hxx b/include/basegfx/polygon/b2dpolygontools.hxx index d00ed1ea8460..6aa96927edd7 100644 --- a/include/basegfx/polygon/b2dpolygontools.hxx +++ b/include/basegfx/polygon/b2dpolygontools.hxx @@ -420,6 +420,10 @@ namespace basegfx */ BASEGFX_DLLPUBLIC B2DPolygon createWaveline(const B2DPolygon& rCandidate, double fWaveWidth, double fWaveHeight); + ////////////////////////////////////////////////////////////////////// + // comparators with tolerance for 2D Polygons + BASEGFX_DLLPUBLIC bool equal(const B2DPolygon& rCandidateA, const B2DPolygon& rCandidateB, const double& rfSmallValue); + /** snap some polygon coordinates to discrete coordinates This method allows to snap some polygon points to discrete (integer) values diff --git a/include/basegfx/polygon/b3dpolygontools.hxx b/include/basegfx/polygon/b3dpolygontools.hxx index 45695d4fded7..8bd610394b2f 100644 --- a/include/basegfx/polygon/b3dpolygontools.hxx +++ b/include/basegfx/polygon/b3dpolygontools.hxx @@ -113,6 +113,10 @@ namespace basegfx // and a line given by start and end point BASEGFX_DLLPUBLIC bool getCutBetweenLineAndPlane(const B3DVector& rPlaneNormal, const B3DPoint& rPlanePoint, const B3DPoint& rEdgeStart, const B3DPoint& rEdgeEnd, double& fCut); + ////////////////////////////////////////////////////////////////////// + // comparators with tolerance for 3D Polygons + BASEGFX_DLLPUBLIC bool equal(const B3DPolygon& rCandidateA, const B3DPolygon& rCandidateB, const double& rfSmallValue); + /** snap some polygon coordinates to discrete coordinates This method allows to snap some polygon points to discrete (integer) values -- cgit