Accuracy information is held in a TReal32 and is measure in metres. The class also provides its own methods for determining the distance and bearing to a target point. These methods also provide an error estimate.
|
Public Member Functions |
| IMPORT_C | TLocality () |
| | Default constructor for TLocality.
|
| IMPORT_C | TLocality (const TCoordinate &aCoordinate, TReal32 aHorizontalAccuracy) |
| | Constructor for TLocality.
|
| IMPORT_C | TLocality (const TCoordinate &aCoordinate, TReal32 aHorizontalAccuracy, TReal32 aVerticalAccuracy) |
| | Constructor for TLocality.
|
| IMPORT_C void | SetHorizontalAccuracy (TReal32 aHorizontalAccuracy) |
| | Sets the horizontal accuracy of this coordinate.
|
| IMPORT_C void | SetVerticalAccuracy (TReal32 aVerticalAccuracy) |
| | Sets the vertical accuracy of this coordinate.
|
| IMPORT_C void | SetAccuracy (TReal32 aHorizontalAccuracy, TReal32 aVerticalAccuracy) |
| | Sets both the horizontal and vertical accuracy of this coordinate.
|
| IMPORT_C TReal32 | HorizontalAccuracy () const |
| | Retrieves the horizontal accuracy of this coordinate.
|
| IMPORT_C TReal32 | VerticalAccuracy () const |
| | Retrieves the vertical accuracy of this coordinate.
|
| 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 | Distance (const TLocality &aLocality, TReal32 &aDistance, TReal32 &aDelta) const |
| | This method calculates the distance between this locality and the supplied locality.
|
| 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 | BearingTo (const TLocality &aTargetLocality, TReal32 &aBearing, TReal32 &aDelta) const |
| | This method calculates the bearing from this locality to the supplied locality.
|
Protected Attributes |
| TReal32 | iHorizontalAccuracy |
| | Horizontal (earths-surface) accuracy, in metres.
|
| TReal32 | iVerticalAccuracy |
| | Altitudinal accuracy, in metres.
|