Constructs a new Distance with the specified value
and unit of measurement.
Namespace: DegreeDays.GeoAssembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax public Distance(
double value,
DistanceUnit unit
)
Public Sub New (
value As Double,
unit As DistanceUnit
)
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 See Also