diff options
Diffstat (limited to 'basegfx/source/polygon')
-rw-r--r-- | basegfx/source/polygon/b2dpolygontools.cxx | 27 | ||||
-rw-r--r-- | basegfx/source/polygon/b3dpolygonclipper.cxx | 12 | ||||
-rw-r--r-- | basegfx/source/polygon/b3dpolygontools.cxx | 21 |
3 files changed, 0 insertions, 60 deletions
diff --git a/basegfx/source/polygon/b2dpolygontools.cxx b/basegfx/source/polygon/b2dpolygontools.cxx index f86f0c655e9b..cfe9f3a71bc5 100644 --- a/basegfx/source/polygon/b2dpolygontools.cxx +++ b/basegfx/source/polygon/b2dpolygontools.cxx @@ -2549,21 +2549,6 @@ namespace basegfx } } - B2DPolygon rotateAroundPoint(const B2DPolygon& rCandidate, const B2DPoint& rCenter, double fAngle) - { - const sal_uInt32 nPointCount(rCandidate.count()); - B2DPolygon aRetval(rCandidate); - - if(nPointCount) - { - const B2DHomMatrix aMatrix(basegfx::tools::createRotateAroundPoint(rCenter, fAngle)); - - aRetval.transform(aMatrix); - } - - return aRetval; - } - B2DPolygon expandToCurve(const B2DPolygon& rCandidate) { B2DPolygon aRetval(rCandidate); @@ -2618,18 +2603,6 @@ namespace basegfx return bRetval; } - B2DPolygon setContinuity(const B2DPolygon& rCandidate, B2VectorContinuity eContinuity) - { - B2DPolygon aRetval(rCandidate); - - for(sal_uInt32 a(0L); a < rCandidate.count(); a++) - { - setContinuityInPoint(aRetval, a, eContinuity); - } - - return aRetval; - } - bool setContinuityInPoint(B2DPolygon& rCandidate, sal_uInt32 nIndex, B2VectorContinuity eContinuity) { OSL_ENSURE(nIndex < rCandidate.count(), "setContinuityInPoint: Access to polygon out of range (!)"); diff --git a/basegfx/source/polygon/b3dpolygonclipper.cxx b/basegfx/source/polygon/b3dpolygonclipper.cxx index 6db49e23beb6..8130d00eced2 100644 --- a/basegfx/source/polygon/b3dpolygonclipper.cxx +++ b/basegfx/source/polygon/b3dpolygonclipper.cxx @@ -294,18 +294,6 @@ namespace basegfx return aRetval; } - B3DPolyPolygon clipPolyPolygonOnOrthogonalPlane(const B3DPolyPolygon& rCandidate, B3DOrientation ePlaneOrthogonal, bool bClipPositive, double fPlaneOffset, bool bStroke) - { - B3DPolyPolygon aRetval; - - for(sal_uInt32 a(0L); a < rCandidate.count(); a++) - { - aRetval.append(clipPolygonOnOrthogonalPlane(rCandidate.getB3DPolygon(a), ePlaneOrthogonal, bClipPositive, fPlaneOffset, bStroke)); - } - - return aRetval; - } - } // end of namespace tools } // end of namespace basegfx diff --git a/basegfx/source/polygon/b3dpolygontools.cxx b/basegfx/source/polygon/b3dpolygontools.cxx index 306f97b5c621..8bdfd132faa3 100644 --- a/basegfx/source/polygon/b3dpolygontools.cxx +++ b/basegfx/source/polygon/b3dpolygontools.cxx @@ -153,27 +153,6 @@ namespace basegfx return fRetval; } - double getEdgeLength(const B3DPolygon& rCandidate, sal_uInt32 nIndex) - { - OSL_ENSURE(nIndex < rCandidate.count(), "getEdgeLength: Access to polygon out of range (!)"); - double fRetval(0.0); - const sal_uInt32 nPointCount(rCandidate.count()); - - if(nIndex < nPointCount) - { - if(rCandidate.isClosed() || ((nIndex + 1L) != nPointCount)) - { - const sal_uInt32 nNextIndex(getIndexOfSuccessor(nIndex, rCandidate)); - const B3DPoint aCurrentPoint(rCandidate.getB3DPoint(nIndex)); - const B3DPoint aNextPoint(rCandidate.getB3DPoint(nNextIndex)); - const B3DVector aVector(aNextPoint - aCurrentPoint); - fRetval = aVector.getLength(); - } - } - - return fRetval; - } - double getLength(const B3DPolygon& rCandidate) { double fRetval(0.0); |