Distance(Double, DistanceType) Constructor

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

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 distance,
	DistanceType type
)

Parameters

distance  Double
Distance
type  DistanceType
Measurement type

Example

The following example converts meters into miles.
C#
Distance distance = new Distance(1000.36, DistanceType.Meters);
Console.WriteLine(distance.Miles); //0.62159469356

See Also