Class representing a geocentric location. More...
#include <SGGeoc.hxx>
Public Member Functions | |
SGGeoc (void) | |
Default constructor, initializes the instance to lat = lon = lat = 0. | |
double | getLongitudeRad (void) const |
Return the geocentric longitude in radians. | |
void | setLongitudeRad (double lon) |
Set the geocentric longitude from the argument given in radians. | |
double | getLongitudeDeg (void) const |
Return the geocentric longitude in degrees. | |
void | setLongitudeDeg (double lon) |
Set the geocentric longitude from the argument given in degrees. | |
double | getLatitudeRad (void) const |
Return the geocentric latitude in radians. | |
void | setLatitudeRad (double lat) |
Set the geocentric latitude from the argument given in radians. | |
double | getLatitudeDeg (void) const |
Return the geocentric latitude in degrees. | |
void | setLatitudeDeg (double lat) |
Set the geocentric latitude from the argument given in degrees. | |
double | getRadiusM (void) const |
Return the geocentric radius in meters. | |
void | setRadiusM (double radius) |
Set the geocentric radius from the argument given in meters. | |
double | getRadiusFt (void) const |
Return the geocentric radius in feet. | |
void | setRadiusFt (double radius) |
Set the geocentric radius from the argument given in feet. | |
Static Public Member Functions | |
static SGGeoc | fromRadFt (double lon, double lat, double radius) |
Factory from angular values in radians and radius in ft. | |
static SGGeoc | fromDegFt (double lon, double lat, double radius) |
Factory from angular values in degrees and radius in ft. | |
static SGGeoc | fromRadM (double lon, double lat, double radius) |
Factory from angular values in radians and radius in m. | |
static SGGeoc | fromDegM (double lon, double lat, double radius) |
Factory from angular values in degrees and radius in m. | |
static SGGeoc | fromCart (const SGVec3< double > &cart) |
Factory to convert position from a cartesian position assumed to be in wgs84 measured in meters Note that this conversion is relatively expensive to compute. | |
static SGGeoc | fromGeod (const SGGeod &geod) |
Factory to convert position from a geodetic position Note that this conversion is relatively expensive to compute. |
Class representing a geocentric location.
Definition at line 26 of file SGGeoc.hxx.