class TCoordinate |
TCoordinate is used to hold the basic coordinates of a location (latitude, longitude and altitude).
Public Member Functions | |
---|---|
TCoordinate() | |
TCoordinate(const TReal64 &, const TReal64 &) | |
TCoordinate(const TReal64 &, const TReal64 &, TReal32) | |
IMPORT_C TReal32 | Altitude() |
IMPORT_C TInt | BearingTo(const TCoordinate &, TReal32 &) |
IMPORT_C TPositionDatumId | Datum() |
IMPORT_C TInt | Distance(const TCoordinate &, TReal32 &) |
IMPORT_C TReal64 | Latitude() |
IMPORT_C TReal64 | Longitude() |
IMPORT_C TInt | Move(TReal32, TReal32) |
IMPORT_C void | SetCoordinate(const TReal64 &, const TReal64 &) |
IMPORT_C void | SetCoordinate(const TReal64 &, const TReal64 &, TReal32) |
IMPORT_C void | SetDatum(TPositionDatumId) |
Private Member Functions | |
---|---|
void | NormalizeCoordinate() |
Protected Attributes | |
---|---|
TReal32 | iAltitude |
TPositionDatumId | iDatum |
TReal64 | iLatitude |
TReal64 | iLongitude |
TUint8 | iReserved |
IMPORT_C | TCoordinate | ( | const TReal64 & | aLatitude, |
const TReal64 & | aLongitude | |||
) |
IMPORT_C | TCoordinate | ( | const TReal64 & | aLatitude, |
const TReal64 & | aLongitude, | |||
TReal32 | aAltitude | |||
) |
IMPORT_C TInt | BearingTo | ( | const TCoordinate & | aTargetCoordinate, |
TReal32 & | aBearing | |||
) | const |
const TCoordinate & aTargetCoordinate | |
TReal32 & aBearing |
IMPORT_C TInt | Distance | ( | const TCoordinate & | aCoordinate, |
TReal32 & | aDistance | |||
) | const |
const TCoordinate & aCoordinate | |
TReal32 & aDistance |
IMPORT_C void | SetCoordinate | ( | const TReal64 & | aLatitude, |
const TReal64 & | aLongitude | |||
) |
IMPORT_C void | SetCoordinate | ( | const TReal64 & | aLatitude, |
const TReal64 & | aLongitude, | |||
TReal32 | aAltitude | |||
) |
IMPORT_C void | SetDatum | ( | TPositionDatumId | aDatum | ) |
TPositionDatumId aDatum |
TReal32 | iAltitude | [protected] |
Altitude, defaults to WGS-84 format. Represented in meters.
TPositionDatumId | iDatum | [protected] |
The ID of the datum the coordinate is in, defaults to WGS-84 format.
TReal64 | iLatitude | [protected] |
Latitude, defaults to WGS-84 format. Represented in degree.
TReal64 | iLongitude | [protected] |
Longitude, defaults to WGS-84 format. Represented in degree.