TCoordinate Class Reference

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 TReal32Altitude()
IMPORT_C TIntBearingTo(const TCoordinate &, TReal32 &)
IMPORT_C TPositionDatumIdDatum()
IMPORT_C TIntDistance(const TCoordinate &, TReal32 &)
IMPORT_C TReal64Latitude()
IMPORT_C TReal64Longitude()
IMPORT_C TIntMove(TReal32, TReal32)
IMPORT_C voidSetCoordinate(const TReal64 &, const TReal64 &)
IMPORT_C voidSetCoordinate(const TReal64 &, const TReal64 &, TReal32)
IMPORT_C voidSetDatum(TPositionDatumId)
Private Member Functions
voidNormalizeCoordinate()
Protected Attributes
TReal32 iAltitude
TPositionDatumId iDatum
TReal64 iLatitude
TReal64 iLongitude
TUint8 iReserved

Constructor & Destructor Documentation

TCoordinate()

IMPORT_CTCoordinate()

TCoordinate(const TReal64 &, const TReal64 &)

IMPORT_CTCoordinate(const TReal64 &aLatitude,
const TReal64 &aLongitude
)

Parameters

const TReal64 & aLatitude
const TReal64 & aLongitude

TCoordinate(const TReal64 &, const TReal64 &, TReal32)

IMPORT_CTCoordinate(const TReal64 &aLatitude,
const TReal64 &aLongitude,
TReal32aAltitude
)

Parameters

const TReal64 & aLatitude
const TReal64 & aLongitude
TReal32 aAltitude

Member Functions Documentation

Altitude()

IMPORT_C TReal32Altitude()const

BearingTo(const TCoordinate &, TReal32 &)

IMPORT_C TIntBearingTo(const TCoordinate &aTargetCoordinate,
TReal32 &aBearing
)const

Parameters

const TCoordinate & aTargetCoordinate
TReal32 & aBearing

Datum()

IMPORT_C TPositionDatumIdDatum()const

Distance(const TCoordinate &, TReal32 &)

IMPORT_C TIntDistance(const TCoordinate &aCoordinate,
TReal32 &aDistance
)const

Parameters

const TCoordinate & aCoordinate
TReal32 & aDistance

Latitude()

IMPORT_C TReal64Latitude()const

Longitude()

IMPORT_C TReal64Longitude()const

Move(TReal32, TReal32)

IMPORT_C TIntMove(TReal32aBearing,
TReal32aDistance
)

Parameters

TReal32 aBearing
TReal32 aDistance

NormalizeCoordinate()

voidNormalizeCoordinate()[private]

SetCoordinate(const TReal64 &, const TReal64 &)

IMPORT_C voidSetCoordinate(const TReal64 &aLatitude,
const TReal64 &aLongitude
)

Parameters

const TReal64 & aLatitude
const TReal64 & aLongitude

SetCoordinate(const TReal64 &, const TReal64 &, TReal32)

IMPORT_C voidSetCoordinate(const TReal64 &aLatitude,
const TReal64 &aLongitude,
TReal32aAltitude
)

Parameters

const TReal64 & aLatitude
const TReal64 & aLongitude
TReal32 aAltitude

SetDatum(TPositionDatumId)

IMPORT_C voidSetDatum(TPositionDatumIdaDatum)

Parameters

TPositionDatumId aDatum

Member Data Documentation

TReal32 iAltitude

TReal32 iAltitude[protected]

Altitude, defaults to WGS-84 format. Represented in meters.

TPositionDatumId iDatum

TPositionDatumId iDatum[protected]

The ID of the datum the coordinate is in, defaults to WGS-84 format.

TReal64 iLatitude

TReal64 iLatitude[protected]

Latitude, defaults to WGS-84 format. Represented in degree.

TReal64 iLongitude

TReal64 iLongitude[protected]

Longitude, defaults to WGS-84 format. Represented in degree.

TUint8 iReserved

TUint8 iReserved[protected]

Unused variable for future expansion.