X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fmath%2FSGGeod.cxx;h=15468707dc4034ef7ad9ca959511aaf4438e7ba9;hb=3cd4c5566f8c418bc9bbb6026072eb0192027993;hp=370b9725f28db66143953ca923a43f10e0ab9dca;hpb=ce54997be569ebcac4222321e7ae3fecccd01324;p=simgear.git diff --git a/simgear/math/SGGeod.cxx b/simgear/math/SGGeod.cxx index 370b9725..15468707 100644 --- a/simgear/math/SGGeod.cxx +++ b/simgear/math/SGGeod.cxx @@ -22,7 +22,7 @@ osg::Matrix SGGeod::makeSimulationFrameRelative() const { SGQuatd hlOr = SGQuatd::fromLonLat(*this); - return osg::Matrix(hlOr.osg()); + return osg::Matrix(toOsg(hlOr)); } osg::Matrix SGGeod::makeSimulationFrame() const @@ -30,7 +30,7 @@ osg::Matrix SGGeod::makeSimulationFrame() const osg::Matrix result(makeSimulationFrameRelative()); SGVec3d coord; SGGeodesy::SGGeodToCart(*this, coord); - result.setTrans(coord.osg()); + result.setTrans(toOsg(coord)); return result; } @@ -48,7 +48,7 @@ osg::Matrix SGGeod::makeZUpFrame() const osg::Matrix result(makeZUpFrameRelative()); SGVec3d coord; SGGeodesy::SGGeodToCart(*this, coord); - result.setTrans(coord.osg()); + result.setTrans(toOsg(coord)); return result; }