Distance(Double) Constructor

Initializes Distance object based on distance in KM

Definition

Namespace: CoordinateSharp
Assembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
C#
public Distance(
	double km
)

Parameters

km  Double
Kilometers

Example

The following example converts kilometers into miles.
C#
Distance distance = new Distance(10.36);
Console.WriteLine(distance.Miles); //6.43740356

See Also