diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-07 16:56:35 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-07 18:00:53 +0100 |
commit | 45c2c0272052f7f23aed0bef11a6289545a49749 (patch) | |
tree | c60711caaade2ece399e529d98a5545774c7c3fa | |
parent | 092e10a58283a5aef7f4118db54c1f6ac8637a0b (diff) |
coverity#983561 Arguments in wrong order
and
coverity#983562 Arguments in wrong order
Change-Id: Ia9e95c8c5dbbf0a12ac06162e4fc3ff5e568f035
-rw-r--r-- | basegfx/source/polygon/b3dpolypolygontools.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/basegfx/source/polygon/b3dpolypolygontools.cxx b/basegfx/source/polygon/b3dpolypolygontools.cxx index ab41ff440782..e77cb911cdf8 100644 --- a/basegfx/source/polygon/b3dpolypolygontools.cxx +++ b/basegfx/source/polygon/b3dpolypolygontools.cxx @@ -220,12 +220,12 @@ namespace basegfx return aRetval; } - // helper for getting the 3D Point from given cartesian coordiantes. fVer is defined from - // [F_PI2 .. -F_PI2], fHor from [0.0 .. F_2PI] - inline B3DPoint getPointFromCartesian(double fVer, double fHor) + // helper for getting the 3D Point from given cartesian coordiantes. fHor is defined from + // [F_PI2 .. -F_PI2], fVer from [0.0 .. F_2PI] + inline B3DPoint getPointFromCartesian(double fHor, double fVer) { - const double fCosHor(cos(fHor)); - return B3DPoint(fCosHor * cos(fVer), sin(fHor), fCosHor * -sin(fVer)); + const double fCosVer(cos(fVer)); + return B3DPoint(fCosVer * cos(fHor), sin(fVer), fCosVer * -sin(fHor)); } B3DPolyPolygon createUnitSpherePolyPolygon( |