From 3fcc16c1a0efed1cf5c98bce6868d252a934cb3e Mon Sep 17 00:00:00 2001 From: frohlich Date: Fri, 27 Jul 2007 19:27:24 +0000 Subject: [PATCH] Modified Files: simgear/math/SGGeoc.hxx: Fix unit conversion problem --- simgear/math/SGGeoc.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/simgear/math/SGGeoc.hxx b/simgear/math/SGGeoc.hxx index 3a27e47a..7559dbf6 100644 --- a/simgear/math/SGGeoc.hxx +++ b/simgear/math/SGGeoc.hxx @@ -201,7 +201,7 @@ SGGeoc::getLongitudeDeg(void) const #ifdef SG_GEOC_NATIVE_DEGREE return _lon; #else - return _lon*SGD_DEGREES_TO_RADIANS; + return _lon*SGD_RADIANS_TO_DEGREES; #endif } @@ -212,7 +212,7 @@ SGGeoc::setLongitudeDeg(double lon) #ifdef SG_GEOC_NATIVE_DEGREE _lon = lon; #else - _lon = lon*SGD_RADIANS_TO_DEGREES; + _lon = lon*SGD_DEGREES_TO_RADIANS; #endif } @@ -245,7 +245,7 @@ SGGeoc::getLatitudeDeg(void) const #ifdef SG_GEOC_NATIVE_DEGREE return _lat; #else - return _lat*SGD_DEGREES_TO_RADIANS; + return _lat*SGD_RADIANS_TO_DEGREES; #endif } @@ -256,7 +256,7 @@ SGGeoc::setLatitudeDeg(double lat) #ifdef SG_GEOC_NATIVE_DEGREE _lat = lat; #else - _lat = lat*SGD_RADIANS_TO_DEGREES; + _lat = lat*SGD_DEGREES_TO_RADIANS; #endif } -- 2.39.5