From: ehofman Date: Tue, 17 Aug 2004 08:31:51 +0000 (+0000) Subject: this simple patch will enable the direct use of Point3D::get_n() instead of making... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=007b0a8fe666eddc104c9b36aa0f62d7ac737ad3;p=simgear.git this simple patch will enable the direct use of Point3D::get_n() instead of making duplications to call sgCartToGeod --- diff --git a/simgear/math/sg_geodesy.cxx b/simgear/math/sg_geodesy.cxx index 61fc8cff..f56e93fa 100644 --- a/simgear/math/sg_geodesy.cxx +++ b/simgear/math/sg_geodesy.cxx @@ -108,7 +108,7 @@ static double seaLevelRadius(double r, double z) // starts making very poor guesses as to latitude. As altitude // approaches infinity, it should be guessing with geocentric // coordinates, not "local geodetic up" ones. -void sgCartToGeod(double* xyz, double* lat, double* lon, double* alt) +void sgCartToGeod(const double* xyz, double* lat, double* lon, double* alt) { // The error is expressed as a radian angle, and we want accuracy // to 1 part in 2^50 (an IEEE double has between 51 and 52 diff --git a/simgear/math/sg_geodesy.hxx b/simgear/math/sg_geodesy.hxx index 8d8b2f9d..0024e541 100644 --- a/simgear/math/sg_geodesy.hxx +++ b/simgear/math/sg_geodesy.hxx @@ -42,7 +42,7 @@ void sgGeodToGeoc(double lat_geod, double alt, * @param lon (out) Longitude, in radians * @param alt (out) Altitude, in meters above the WGS84 ellipsoid */ -void sgCartToGeod(double* xyz, double* lat, double* lon, double* alt); +void sgCartToGeod(const double* xyz, double* lat, double* lon, double* alt); /** * Convert a cartesian point to a geodetic lat/lon/altitude.