Distance(Double, DistanceType) Constructor
Initializes a Distance object based on a specified distance and measurement type.
Namespace: CoordinateSharpAssembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
public Distance(
double distance,
DistanceType type
)
Parameters
- distance Double
- Distance
- type DistanceType
- Measurement type
The following example converts meters into miles.
Distance distance = new Distance(1000.36, DistanceType.Meters);
Console.WriteLine(distance.Miles); //0.62159469356