summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-11-18 23:42:32 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-11-19 10:00:02 +0100
commit1cc6fca4927b9684b1f5acedee7b60c0c7518e25 (patch)
treed3ec824cbf0bd00b7a89f004509fbcea5dccf70c /include
parent37429f2690a96491ad0e4fa2a04f2fa88a66da87 (diff)
Drop F_2PI
Change-Id: Ie98606607b2ce262e4eed76bb8cd86fbfe846f76 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125506 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/basegfx/numeric/ftools.hxx3
-rw-r--r--include/basegfx/polygon/b3dpolypolygontools.hxx8
2 files changed, 4 insertions, 7 deletions
diff --git a/include/basegfx/numeric/ftools.hxx b/include/basegfx/numeric/ftools.hxx
index 7045695bf5fb..63e7a0d460ce 100644
--- a/include/basegfx/numeric/ftools.hxx
+++ b/include/basegfx/numeric/ftools.hxx
@@ -33,9 +33,6 @@
#ifndef F_PI18000
#define F_PI18000 (M_PI/18000.0)
#endif
-#ifndef F_2PI
-#define F_2PI (2.0*M_PI)
-#endif
// fTools defines
diff --git a/include/basegfx/polygon/b3dpolypolygontools.hxx b/include/basegfx/polygon/b3dpolypolygontools.hxx
index 4480f3266704..8346ba5d8fdc 100644
--- a/include/basegfx/polygon/b3dpolypolygontools.hxx
+++ b/include/basegfx/polygon/b3dpolypolygontools.hxx
@@ -62,7 +62,7 @@ namespace basegfx::utils
BASEGFX_DLLPUBLIC B3DPolyPolygon createUnitSpherePolyPolygon(
sal_uInt32 nHorSeg, sal_uInt32 nVerSeg,
double fVerStart = M_PI_2, double fVerStop = -M_PI_2,
- double fHorStart = 0.0, double fHorStop = F_2PI);
+ double fHorStart = 0.0, double fHorStop = 2 * M_PI);
/** Create a 3D line polyPolygon from a B3DRange which defines a sphere with the given count of hor and ver segments.
If nHorSeg == 0 and/or nVerSeg == 0, a default will be calculated to have a step at least each 15 degrees.
@@ -72,7 +72,7 @@ namespace basegfx::utils
const B3DRange& rRange,
sal_uInt32 nHorSeg, sal_uInt32 nVerSeg,
double fVerStart = M_PI_2, double fVerStop = -M_PI_2,
- double fHorStart = 0.0, double fHorStop = F_2PI);
+ double fHorStart = 0.0, double fHorStop = 2 * M_PI);
/** same as createUnitSpherePolyPolygon, but creates filled polygons (closed and oriented)
There is one extra, the bool bNormals defines if normals will be set, default is false
@@ -81,7 +81,7 @@ namespace basegfx::utils
sal_uInt32 nHorSeg, sal_uInt32 nVerSeg,
bool bNormals = false,
double fVerStart = M_PI_2, double fVerStop = -M_PI_2,
- double fHorStart = 0.0, double fHorStop = F_2PI);
+ double fHorStart = 0.0, double fHorStop = 2 * M_PI);
/** same as createSpherePolyPolygonFromB3DRange, but creates filled polygons (closed and oriented)
There is one extra, the bool bNormals defines if normals will be set, default is false
@@ -91,7 +91,7 @@ namespace basegfx::utils
sal_uInt32 nHorSeg, sal_uInt32 nVerSeg,
bool bNormals = false,
double fVerStart = M_PI_2, double fVerStop = -M_PI_2,
- double fHorStart = 0.0, double fHorStop = F_2PI);
+ double fHorStart = 0.0, double fHorStop = 2 * M_PI);
/** Create/replace normals for given 3d geometry with default normals from given center to outside.
rCandidate: the 3d geometry to change