|
||
class TCoordinate;
TCoordinate is used to hold the basic coordinates of a location (latitude, longitude and altitude).
Defined in TCoordinate
:
Altitude()const
Accessor for altitude.BearingTo(const TCoordinate &,TReal32 &)const
This method calculates the bearing from this coordinate to the supplied coordina...Datum()const
Accessor for the datum.Distance(const TCoordinate &,TReal32 &)const
This method calculates the distance between this coordinate and the supplied coo...Latitude()const
Accessor for latitude.Longitude()const
Accessor for longitude.Move(TReal32,TReal32)
This method moves this coordinate aDistance in the direction specified by aBeari...SetCoordinate(const TReal64 &,const TReal64 &)
This method assigns a new latitude and longitude to the object. The altitude is ...SetCoordinate(const TReal64 &,const TReal64 &,TReal32)
This method assigns a new latitude, longitude and altitude to the object.SetDatum(TPositionDatumId)
This method assigns a new datum to the object.TCoordinate()
Default constructor for TCoordinate. Sets the member data to default values (NaN...TCoordinate(const TReal64 &,const TReal64 &)
Constructor for TCoordinate. Allows the client to set just latitude and longitud...TCoordinate(const TReal64 &,const TReal64 &,TReal32)
Constructor for TCoordinate. Allows the client to set the latitude, longitude an...iAltitude
Altitude, defaults to WGS-84 format. iDatum
The ID of the datum the coordinate is in, defaults to WGS-84 format. iLatitude
Latitude, defaults to WGS-84 format. iLongitude
Longitude, defaults to WGS-84 format. iReserved
Unused variable for future expansion. 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[4];
Unused variable for future expansion.