#include <Geodetic.h>
Inheritance diagram for CGeoLatLong:
Public Member Functions | |
CGeoLatLong () | |
Constructor. | |
CGeoLatLong (double dLatitudeRadians, double dLongitudeRadians) | |
Constructor. | |
CGeoLatLong (const CGeoLatLong &Other) | |
Constructor. | |
~CGeoLatLong () | |
Destructor. | |
bool | IsValid (void) const |
Checks the latitude and longitude are within the bounds. | |
void | SetLatDegrees (double dLatDegrees) |
Sets the latitude in degrees. | |
void | SetLongDegrees (double dLongDegrees) |
Sets the longitude in degrees. | |
double | GetLatDegrees () const |
Gets the latitude in degrees. | |
double | GetLongDegrees () const |
Gets the longitude in degrees. | |
void | SetLat (double dLatRadians) |
Sets the latitude in radians. | |
void | SetLong (double dLongRadians) |
Sets the longitude in radians. | |
double | GetLat () const |
Gets the latitude in radians. | |
double | GetLong () const |
Gets the longitude in radians. | |
void | GetLatString (char *dest) const |
Latitude as a string. Target must be at least 10 chars long. | |
void | GetLongString (char *dest) const |
Longitude as a string. Target must be at least 11 chars long. | |
CGeoLatLong & | operator= (const CGeoLatLong &Other) |
Assignment. | |
bool | operator== (CGeoLatLong &Other) const |
Equality. | |
bool | operator!= (CGeoLatLong &Other) const |
Inequality. | |
double | Range (const CGeoLatLong &Other) const |
Great circle range to another, ignores height. | |
double | Heading (const CGeoLatLong &Other) const |
Heading from this to the other in Radians. | |
void | RangeAndHeading (const CGeoLatLong &Other, double &dRangeMetres, double &dHeadingRadians) const |
Returns the range and the heading to the other point. | |
void | Set (double dHeadingRadians, double dRange, const CGeoLatLong &Origin) |
Sets the data by using a heading and range from another. | |
void | Rotate (const CGeoLatLong &Other) |
Adds the latitude and longitude from the other to this. | |
void | GeocentricWSG84 (C3DPoint &xyzPoint) const |
Converts to Geocentric using WSG84 algorithm. | |
void | Geocentric (C3DPoint &xyzPoint) const |
Converts to Geocentric with assumed sherical earth. | |
double | SlantRangeWSG84 (const CGeoLatLong &Other) const |
The direct range with WSG84 modelled elipsical earth. | |
double | SlantRange (const CGeoLatLong &Other) const |
The direct range with spherical earth. | |
Static Public Member Functions | |
static double | RangeToSlantRange (double dRange) |
Converts range to slant range based on spherical earth. | |
static double | SlantRangeToRange (double dSlantRange) |
Converts slant range to range based on spherical earth. | |
Protected Attributes | |
double | m_dLat |
Latitude. | |
double | m_dLong |
Longitude. |
--------------------------------------------------------------------------
---------------------------------------------------------------------------
|
Constructor.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Constructor.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Constructor.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Destructor.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Converts to Geocentric with assumed sherical earth.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Reimplemented in CGeoLatLongHeight. |
|
Converts to Geocentric using WSG84 algorithm.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Reimplemented in CGeoLatLongHeight. |
|
Latitude as a string. Target must be at least 10 chars long.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Longitude as a string. Target must be at least 11 chars long.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Heading from this to the other in Radians.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Checks the latitude and longitude are within the bounds.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Inequality.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Reimplemented in CGeoLatLongHeight. |
|
Assignment.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Reimplemented in CGeoLatLongHeight. |
|
Equality.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Reimplemented in CGeoLatLongHeight. |
|
Great circle range to another, ignores height.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Reimplemented in CGeoLatLongHeight. |
|
Returns the range and the heading to the other point.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Converts range to slant range based on spherical earth.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Adds the latitude and longitude from the other to this.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Sets the data by using a heading and range from another.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Reimplemented in CGeoLatLongHeight. |
|
The direct range with spherical earth.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Converts slant range to range based on spherical earth.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
The direct range with WSG84 modelled elipsical earth.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |