7 #ifndef DtGeodeticCoord_H_
8 #define DtGeodeticCoord_H_
22 #ifdef DtUSE_UTILITIES_NAMESPACE
23 namespace DtUSE_UTILITIES_NAMESPACE
63 virtual void getGeocentric(
DtVector& geocentric )
const;
70 virtual void printDataToStream(std::ostream &str)
const;
90 virtual void setGeoidDatumType(
DtGeoidType geoid );
116 double latDegrees =
DtRad2Deg((*
this)[0]);
117 double lonDegrees =
DtRad2Deg((*
this)[1]);
119 double und = myGeoidDatum->undulation(latDegrees, lonDegrees);
120 return (*
this)[2] - und;
143 double latDegrees =
DtRad2Deg((*
this)[0]);
144 double lonDegrees =
DtRad2Deg((*
this)[1]);
146 double und = myGeoidDatum->undulation(latDegrees, lonDegrees);
147 (*this)[2] = alt + und;
159 #ifdef DtUSE_UTILITIES_NAMESPACE
This file contains the declaration of the DtGeoidDatum class as well as commonly used geoids...
virtual DtFloat64 alt() const
Definition: geodeticCoord.h:107
double DtRad2Deg(double rad)
Converts Radians to Degrees.
Definition: vlMath.h:81
void DtGeocToGeod(const DtVector &in, DtGeodeticCoord &out)
This function is deprecated, and provided for backwards compatibility only!
std::ostream & operator<<(std::ostream &os, const Dt3dChord &chord)
Definition: geoidDatum.h:59
Instances of DtGeodeticCoord are used to explicitly represent Geodetic coordinates.
Definition: geodeticCoord.h:30
DtMapDatums represent a spheroid model of the earth, with a data shift to facilitate easy conversion ...
Definition: mapDatum.h:50
Instances of this class are used to store a particular mapDatum and perform useful calculations based...
Definition: referenceEllipsoid.h:41
This file declares DtVector and DtVector32.
This file defines math constants and methods which may be useful in simulations.
Definition: vlVector.h:224
virtual void setLon(DtFloat64 lon)
Set/Get the longitude.
Definition: geodeticCoord.h:129
const DtReferenceEllipsoid * myEllipsoid
Definition: geodeticCoord.h:93
#define DT_DLL_MATRIX
Definition: vlMachineTypes.h:107
DtReferenceEllipsoid * DtGlobalEllipsoid()
Call this function to obtain a ptr to the global ellipsoid which is used for geodetic coord conversio...
virtual void setLat(DtFloat64 lat)
Set/Get the latitude.
Definition: geodeticCoord.h:124
virtual void setAlt(DtFloat64 alt)
Set/Get the altitude.
Definition: geodeticCoord.h:134
virtual DtFloat64 lat() const
Definition: geodeticCoord.h:97
void DtGeodToGeoc(const DtGeodeticCoord &in, DtVector &out)
This function is deprecated, and provided for backwards compatibility only!
virtual DtFloat64 lon() const
Definition: geodeticCoord.h:102
DtGeoidDatum * myGeoidDatum
Definition: geodeticCoord.h:94
This file contains the declaration of DtReferenceEllipsoid and several helper functions.
DtGeoidType
Geoid Type enumerations. Default is DtNoGeoid. There are 3 supported EGM models, EGM84, EGM96, EGM2008 in different resolutions.
Definition: geoidDatum.h:40