Distance Class

Class for handling distance conversions and distance/bearing values between two coordinates.

Definition

Namespace: CoordinateSharp
Assembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
C#
[SerializableAttribute]
public class Distance
Inheritance
Object    Distance

Constructors

Distance(Double) Initializes Distance object based on distance in KM
Distance(Coordinate, Coordinate) Initializes a Distance object based on the distance between 2 coordinates using the default distance formula.
Distance(Double, DistanceType) Initializes a Distance object based on a specified distance and measurement type.
Distance(Coordinate, Coordinate, Shape) Initializes a Distance object based on the distance between 2 coordinates.

Properties

Bearing Initial Bearing from Coordinate 1 to Coordinate 2
Feet Distance in Feet
Kilometers Distance in Kilometers
Meters Distance in Meters
Miles Distance in Statute Miles
NauticalMiles Distance in Nautical Miles

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also