diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-02-26 10:18:39 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-02-26 10:12:29 +0100 |
commit | 3caf379f1c6398548c65bb7a83e3911d9a8bc444 (patch) | |
tree | c2068e498094b99865ed8e59b6b0f65fee908683 /include/svx/svdtrans.hxx | |
parent | b8f83e285af000ed1ebf211c2021cc065724ea37 (diff) |
svdtrans: nPi -> M_PI; nPi180 -> F_PI18000 to remove duplicates
Change-Id: Ia2c103a5b530d007f750e4a034b253b3ec5406ec
Reviewed-on: https://gerrit.libreoffice.org/68368
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/svx/svdtrans.hxx')
-rw-r--r-- | include/svx/svdtrans.hxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/svx/svdtrans.hxx b/include/svx/svdtrans.hxx index a27515e86327..c10f9f8fc2f0 100644 --- a/include/svx/svdtrans.hxx +++ b/include/svx/svdtrans.hxx @@ -33,17 +33,15 @@ // The DrawingEngine's angles are specified in 1/100th degrees // We need to convert these angles to radians, in order to be able // to process them with trigonometric functions. -// This is done, using the constant nPi180. +// This is done, using the constant F_PI18000. // // Example usage: // nAngle ... is an angle in 1/100 Deg // // Which is converted, by this: -// double nSin=sin(nAngle*nPi180); +// double nSin=sin(nAngle*F_PI18000); // // To convert it back, we use division. -const double nPi=3.14159265358979323846; -const double nPi180=0.000174532925199432957692222; // If we have too few digits, we get tan(4500*nPi180)!=1.0 // That maximum shear angle #define SDRMAXSHEAR 8900 |