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.4
Syntax
public Distance(
	double value,
	DistanceUnit unit
)

Parameters

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