diff options
-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( |