|
GPS ToolKit.NET
Distance Class
Represents a distance.
Syntax
[Visual Basic]
Dim instance As Distance
[C#]
Distance instance
[C++]
Distance* instance
[Visual Basic]
Dim instance As New Distance(DistanceInMeters)
[C#]
Distance instance = new Distance(DistanceInMeters)
[C++]
Distance* instance = new Distance(DistanceInMeters)
Parameters
DistanceInMeters
A double representing the distance in meters.
Remarks
Distance represents a distance value, available in feet, meters, kilometers, miles, and nautical miles.
Because distance information may not be available from the GPS, it is important to check the IsValid property before using
the data.
Instance Hierarchy
SciCom
   SciCom.GPSToolKit
     SciCom.GPSToolKit.GPSToolKit
         SciCom.GPSToolKit.GPSToolKit.Distance
Thread Safety
Distance is thread safe for use by multiple threads.
Properties
| Property
| Description |
IsValid property |
True if the distance is valid, false if it is invalid or unavailable |
ValueInFeet property |
A double representing the distance value in feet |
ValueInKilometers property |
A double representing the distance value in kilometers |
ValueInMeters property |
A double representing the distance value in meters |
ValueInNauticalMiles property |
A double representing the distance value in nautical miles |
See Also
GPSToolKit class | Position class | NavigationUpdate event
|