Location:
LbsPosition.h
Link against: lbsselflocate.lib
class TCoordinate;
TCoordinate is used to hold the basic coordinates of a location (latitude, longitude and altitude).
Defined in TCoordinate
:
Altitude()
, BearingTo()
, Datum()
, Distance()
, Latitude()
, Longitude()
, Move()
, SetCoordinate()
, SetCoordinate()
, SetDatum()
, TCoordinate()
, TCoordinate()
, TCoordinate()
, iAltitude
, iDatum
, iLatitude
, iLongitude
, iReserved
IMPORT_C TCoordinate();
Default constructor for TCoordinate. Sets the member data to default values (NaN).
IMPORT_C TCoordinate(const TReal64 &aLatitude, const TReal64 &aLongitude);
Constructor for TCoordinate. Allows the client to set just latitude and longitude, and sets the altitude to its default value (NaN).
|
IMPORT_C TCoordinate(const TReal64 &aLatitude, const TReal64 &aLongitude, TReal32 aAltitude);
Constructor for TCoordinate. Allows the client to set the latitude, longitude and altitude.
|
IMPORT_C void SetCoordinate(const TReal64 &aLatitude, const TReal64 &aLongitude);
This method assigns a new latitude and longitude to the object. The altitude is set to its default value.
|
IMPORT_C void SetCoordinate(const TReal64 &aLatitude, const TReal64 &aLongitude, TReal32 aAltitude);
This method assigns a new latitude, longitude and altitude to the object.
|
IMPORT_C void SetDatum(TPositionDatumId aDatum);
This method assigns a new datum to the object.
|
IMPORT_C TReal64 Latitude() const;
Accessor for latitude.
|
IMPORT_C TReal64 Longitude() const;
Accessor for longitude.
|
IMPORT_C TReal32 Altitude() const;
Accessor for altitude.
|
IMPORT_C TPositionDatumId Datum() const;
Accessor for the datum.
|
IMPORT_C TInt Distance(const TCoordinate &aCoordinate, TReal32 &aDistance) const;
This method calculates the distance between this coordinate and the supplied coordinate.
|
|
IMPORT_C TInt BearingTo(const TCoordinate &aTargetCoordinate, TReal32 &aBearing) const;
This method calculates the bearing from this coordinate to the supplied coordinate.
|
|
IMPORT_C TInt Move(TReal32 aBearing, TReal32 aDistance);
This method moves this coordinate aDistance in the direction specified by aBearing
|
|
protected: TPositionDatumId iDatum;
The ID of the datum the coordinate is in, defaults to WGS-84 format.
protected: TUint8 iReserved;
Unused variable for future expansion.