1
0
Fork 0

Store SGGeod values in Point3d as deg, not rad

This commit is contained in:
Christian Schmitt 2012-10-16 17:49:39 +02:00
parent a1a331db7c
commit 440ef1cfbb

View file

@ -205,8 +205,8 @@ inline Point3D::Point3D(const Point3D& p)
inline Point3D Point3D::fromSGGeod(const SGGeod& geod) inline Point3D Point3D::fromSGGeod(const SGGeod& geod)
{ {
Point3D pt; Point3D pt;
pt.setlon(geod.getLongitudeRad()); pt.setlon(geod.getLongitudeDeg());
pt.setlat(geod.getLatitudeRad()); pt.setlat(geod.getLatitudeDeg());
pt.setelev(geod.getElevationM()); pt.setelev(geod.getElevationM());
return pt; return pt;
@ -376,8 +376,8 @@ inline double Point3D::elev() const { return n[PZ]; }
inline SGGeod Point3D::toSGGeod(void) const inline SGGeod Point3D::toSGGeod(void) const
{ {
SGGeod geod; SGGeod geod;
geod.setLongitudeRad(lon()); geod.setLongitudeDeg(lon());
geod.setLatitudeRad(lat()); geod.setLatitudeDeg(lat());
geod.setElevationM(elev()); geod.setElevationM(elev());
return geod; return geod;
} }