Click or drag to resize

Distance Constructor (Double)

Initializes Distance object based on distance in KM

Namespace:  CoordinateSharp
Assembly:  CoordinateSharp (in CoordinateSharp.dll) Version: 2.12.1.1
Syntax
C#
public Distance(
	double km
)

Parameters

km
Type: SystemDouble
Kilometers
Examples
The following example converts kilometers into miles.
Distance distance = new Distance(10.36);
Console.WriteLine(distance.Miles); //6.43740356
See Also