summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorHossein <hossein@libreoffice.org>2021-11-16 12:56:49 +0100
committerMike Kaganski <mike.kaganski@collabora.com>2021-11-16 15:54:30 +0100
commitb0ce4e848f786a2f452a6a6e426df4b95af4da3c (patch)
tree2d1c2b9b981e89c334246523155f03cb69e8d23c /sd
parent84b817130a1b19591c3add9af5db0f42af64be68 (diff)
Use basegfx::deg2rad instead of *0.01745329251994
* Replaced multiplying by magic number 0.01745329251994 with basegfx::deg2rad() which is equal to M_PI/180.0 * Instances of this could be found using: git grep 0.01745329251994 *.cxx *.hxx Change-Id: Ib813251f6223e4218fe977c0211732c22199295d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125294 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/func/fucon3d.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/func/fucon3d.cxx b/sd/source/ui/func/fucon3d.cxx
index eb0f35b84eae..ddbe1f238bfe 100644
--- a/sd/source/ui/func/fucon3d.cxx
+++ b/sd/source/ui/func/fucon3d.cxx
@@ -275,7 +275,7 @@ void FuConstruct3dObject::ImpPrepareBasic3DShape(E3dCompoundObject const * p3DOb
{
case SID_3D_CUBE:
{
- aTransformation.rotate(DEG2RAD(20), 0.0, 0.0);
+ aTransformation.rotate(basegfx::deg2rad(20), 0.0, 0.0);
}
break;
@@ -287,7 +287,7 @@ void FuConstruct3dObject::ImpPrepareBasic3DShape(E3dCompoundObject const * p3DOb
case SID_3D_SHELL:
case SID_3D_HALF_SPHERE:
{
- aTransformation.rotate(DEG2RAD(200), 0.0, 0.0);
+ aTransformation.rotate(basegfx::deg2rad(200), 0.0, 0.0);
}
break;
@@ -300,7 +300,7 @@ void FuConstruct3dObject::ImpPrepareBasic3DShape(E3dCompoundObject const * p3DOb
case SID_3D_TORUS:
{
- aTransformation.rotate(DEG2RAD(90), 0.0, 0.0);
+ aTransformation.rotate(basegfx::deg2rad(90), 0.0, 0.0);
}
break;