Click or drag to resize

DistanceUnit Structure

Defines the units of distance measurement with constants to represent metres, kilometres, feet, and miles.

Namespace:  DegreeDays.Geo
Assembly:  DegreeDays (in DegreeDays.dll) Version: 1.3
Syntax
public struct DistanceUnit : IEquatable<DistanceUnit>

The DistanceUnit type exposes the following members.

Methods
Operators
  NameDescription
Public operatorStatic memberEquality(DistanceUnit, DistanceUnit)
Determines whether two specified DistanceUnit instances are equal.
Public operatorStatic memberInequality(DistanceUnit, DistanceUnit)
Determines whether two specified DistanceUnit instances are not equal.
Top
Fields
  NameDescription
Public fieldStatic memberFeet
For the imperial unit the foot (ft).
Public fieldStatic memberKilometres
For the metric unit the kilometre (km); 1 kilometre = 1000 metres.
Public fieldStatic memberMetres
For the SI base unit of length, the metre (m).
Public fieldStatic memberMiles
For the imperial unit the mile (mi); 1 mile = 5280 feet.
Top
Thread Safety
Instances of this struct are immutable and safe for use from multiple threads at once. The only values that can exist are those declared here as static readonly fields.
See Also