From 440ef1cfbb52e66f27c63d57848dcd237210bd75 Mon Sep 17 00:00:00 2001 From: Christian Schmitt Date: Tue, 16 Oct 2012 17:49:39 +0200 Subject: [PATCH] Store SGGeod values in Point3d as deg, not rad --- src/Lib/Geometry/point3d.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Lib/Geometry/point3d.hxx b/src/Lib/Geometry/point3d.hxx index da226abf..826fdcef 100644 --- a/src/Lib/Geometry/point3d.hxx +++ b/src/Lib/Geometry/point3d.hxx @@ -205,8 +205,8 @@ inline Point3D::Point3D(const Point3D& p) inline Point3D Point3D::fromSGGeod(const SGGeod& geod) { Point3D pt; - pt.setlon(geod.getLongitudeRad()); - pt.setlat(geod.getLatitudeRad()); + pt.setlon(geod.getLongitudeDeg()); + pt.setlat(geod.getLatitudeDeg()); pt.setelev(geod.getElevationM()); return pt; @@ -376,8 +376,8 @@ inline double Point3D::elev() const { return n[PZ]; } inline SGGeod Point3D::toSGGeod(void) const { SGGeod geod; - geod.setLongitudeRad(lon()); - geod.setLatitudeRad(lat()); + geod.setLongitudeDeg(lon()); + geod.setLatitudeDeg(lat()); geod.setElevationM(elev()); return geod; }