diff options
author | Noel Grandin <noel@peralex.com> | 2015-03-19 16:02:29 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-03-23 09:42:23 +0200 |
commit | 0339e648a8d4d78f8271af07965876fae81d1570 (patch) | |
tree | 14f7a4616185232973e59351e9e7524fac9e36a1 /chart2/source/inc/ThreeDHelper.hxx | |
parent | 468ff4b3b6e20cab284b5f6dbd7c8aa5a1ba1264 (diff) |
loplugin:constantfunction: chart2
Change-Id: I2ec1eaf9faa23779fbdf53771dbba1936c6aa3f9
Diffstat (limited to 'chart2/source/inc/ThreeDHelper.hxx')
-rw-r--r-- | chart2/source/inc/ThreeDHelper.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chart2/source/inc/ThreeDHelper.hxx b/chart2/source/inc/ThreeDHelper.hxx index 6c27f253231c..41427ab0435d 100644 --- a/chart2/source/inc/ThreeDHelper.hxx +++ b/chart2/source/inc/ThreeDHelper.hxx @@ -83,8 +83,9 @@ public: , bool bRightAngledAxes, bool bRotateLights=true ); static void adaptRadAnglesForRightAngledAxes( double& rfXAngleRad, double& rfYAngleRad ); - static double getXDegreeAngleLimitForRightAngledAxes(); - static double getYDegreeAngleLimitForRightAngledAxes(); + static double getXDegreeAngleLimitForRightAngledAxes() { return 90.0; } + static double getYDegreeAngleLimitForRightAngledAxes() { return 45.0; } + static double getValueClippedToRange( double fValue, const double& fPositivLimit ); static void convertElevationRotationDegToXYZAngleRad( |