Click or drag to resize

Distance Constructor (Double, DistanceType)

Initializes a Distance object based on a specified distance and measurement type.

Namespace:  CoordinateSharp
Assembly:  CoordinateSharp (in CoordinateSharp.dll) Version: 2.12.1.1
Syntax
C#
public Distance(
	double distance,
	DistanceType type
)

Parameters

distance
Type: SystemDouble
Distance
type
Type: CoordinateSharpDistanceType
Measurement type
Examples
The following example converts meters into miles.
Distance distance = new Distance(1000.36, DistanceType.Meters);
Console.WriteLine(distance.Miles); //0.62159469356
See Also