Distance(Double) Constructor
Initializes Distance object based on distance in KM
Namespace: CoordinateSharpAssembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
public Distance(
double km
)
Parameters
- km Double
- Kilometers
The following example converts kilometers into miles.
Distance distance = new Distance(10.36);
Console.WriteLine(distance.Miles); //6.43740356