Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CGeoLatLong Class Reference

Class with data for latitude, and longitude. Functions to convert to Geocentric co-ordinates and 2D. Units in metres. More...

#include <Geodetic.h>

Inheritance diagram for CGeoLatLong:

CGeoLatLongHeight List of all members.

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.
CGeoLatLongoperator= (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.

Detailed Description

Class with data for latitude, and longitude. Functions to convert to Geocentric co-ordinates and 2D. Units in metres.

--------------------------------------------------------------------------

---------------------------------------------------------------------------


Constructor & Destructor Documentation

CGeoLatLong::CGeoLatLong  ) 
 

Constructor.

--------------------------------------------------------------------------
CGeoLatLong::CGeoLatLong

---------------------------------------------------------------------------

CGeoLatLong::CGeoLatLong double  dLatitudeRadians,
double  dLongitudeRadians
 

Constructor.

--------------------------------------------------------------------------
CGeoLatLong::CGeoLatLong

---------------------------------------------------------------------------

CGeoLatLong::CGeoLatLong const CGeoLatLong Other  ) 
 

Constructor.

--------------------------------------------------------------------------
CGeoLatLong::CGeoLatLong

---------------------------------------------------------------------------

CGeoLatLong::~CGeoLatLong  ) 
 

Destructor.

--------------------------------------------------------------------------
CGeoLatLong::~CGeoLatLong

---------------------------------------------------------------------------


Member Function Documentation

void CGeoLatLong::Geocentric C3DPoint xyzPoint  )  const
 

Converts to Geocentric with assumed sherical earth.

--------------------------------------------------------------------------
CGeoLatLong::ConvertTo3D

---------------------------------------------------------------------------

Reimplemented in CGeoLatLongHeight.

void CGeoLatLong::GeocentricWSG84 C3DPoint xyzPoint  )  const
 

Converts to Geocentric using WSG84 algorithm.

--------------------------------------------------------------------------
CGeoLatLong::ConvertTo3DWSG84

---------------------------------------------------------------------------

Reimplemented in CGeoLatLongHeight.

void CGeoLatLong::GetLatString char *  dest  )  const
 

Latitude as a string. Target must be at least 10 chars long.

--------------------------------------------------------------------------
CGeoLatLong::GetLatString

---------------------------------------------------------------------------

void CGeoLatLong::GetLongString char *  dest  )  const
 

Longitude as a string. Target must be at least 11 chars long.

--------------------------------------------------------------------------
CGeoLatLong::GetLongString

---------------------------------------------------------------------------

double CGeoLatLong::Heading const CGeoLatLong Other  )  const
 

Heading from this to the other in Radians.

--------------------------------------------------------------------------
CGeoLatLong::Heading

---------------------------------------------------------------------------

bool CGeoLatLong::IsValid void   )  const
 

Checks the latitude and longitude are within the bounds.

--------------------------------------------------------------------------
CGeoLatLong::IsValid

---------------------------------------------------------------------------

bool CGeoLatLong::operator!= CGeoLatLong Other  )  const
 

Inequality.

--------------------------------------------------------------------------
CGeoLatLong::operator!=

---------------------------------------------------------------------------

Reimplemented in CGeoLatLongHeight.

CGeoLatLong & CGeoLatLong::operator= const CGeoLatLong Other  ) 
 

Assignment.

--------------------------------------------------------------------------
CGeoLatLong::CGeoLatLong

---------------------------------------------------------------------------

Reimplemented in CGeoLatLongHeight.

bool CGeoLatLong::operator== CGeoLatLong Other  )  const
 

Equality.

--------------------------------------------------------------------------
CGeoLatLong::operator==

---------------------------------------------------------------------------

Reimplemented in CGeoLatLongHeight.

double CGeoLatLong::Range const CGeoLatLong Other  )  const
 

Great circle range to another, ignores height.

--------------------------------------------------------------------------
CGeoLatLong::Range

---------------------------------------------------------------------------

Reimplemented in CGeoLatLongHeight.

void CGeoLatLong::RangeAndHeading const CGeoLatLong Other,
double &  dRangeMetres,
double &  hdng
const
 

Returns the range and the heading to the other point.

--------------------------------------------------------------------------
CGeoLatLong::RangeAndHeading

---------------------------------------------------------------------------

double CGeoLatLong::RangeToSlantRange double  dRange  )  [static]
 

Converts range to slant range based on spherical earth.

--------------------------------------------------------------------------
CGeoLatLong::RangeToSlantRange

---------------------------------------------------------------------------

void CGeoLatLong::Rotate const CGeoLatLong Other  ) 
 

Adds the latitude and longitude from the other to this.

--------------------------------------------------------------------------
CGeoLatLong::Rotate

---------------------------------------------------------------------------

void CGeoLatLong::Set double  dHeading,
double  dRange,
const CGeoLatLong Origin
 

Sets the data by using a heading and range from another.

--------------------------------------------------------------------------
CGeoLatLong::Set

---------------------------------------------------------------------------

Reimplemented in CGeoLatLongHeight.

double CGeoLatLong::SlantRange const CGeoLatLong Other  )  const
 

The direct range with spherical earth.

--------------------------------------------------------------------------
CGeoLatLong::SlantRange

---------------------------------------------------------------------------

double CGeoLatLong::SlantRangeToRange double  dSlantRange  )  [static]
 

Converts slant range to range based on spherical earth.

--------------------------------------------------------------------------
CGeoLatLong::SlantRangeToRange

---------------------------------------------------------------------------

double CGeoLatLong::SlantRangeWSG84 const CGeoLatLong Other  )  const
 

The direct range with WSG84 modelled elipsical earth.

--------------------------------------------------------------------------
CGeoLatLong::SlantRangeWSG84

---------------------------------------------------------------------------


The documentation for this class was generated from the following files:
Generated on Mon Apr 21 11:43:52 2008 for GeoLib by  doxygen 1.4.4