Store SGGeod values in Point3d as deg, not rad
This commit is contained in:
parent
a1a331db7c
commit
440ef1cfbb
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue