Click or drag to resize

Distance Constructor

Constructs a new Distance with the specified value and unit of measurement.

Namespace:  DegreeDays.Geo
Assembly:  DegreeDays (in DegreeDays.dll) Version: 1.3
Syntax
public Distance(
	double value,
	DistanceUnit unit
)

Parameters

value
Type: SystemDouble
The numeric distance (e.g. to create a Distance object representing 20 miles, value should be 20).
unit
Type: DegreeDays.GeoDistanceUnit
The unit of measurement (e.g. Miles).
Exceptions
ExceptionCondition
ArgumentExceptionvalue is NaN or infinite.
See Also