Click or drag to resize

Distance Class

Class for handling distance conversions and distance/bearing values between two coordinates.
Inheritance Hierarchy
SystemObject
  CoordinateSharpDistance

Namespace:  CoordinateSharp
Assembly:  CoordinateSharp (in CoordinateSharp.dll) Version: 2.1.1.1-beta.2
Syntax
C#
[SerializableAttribute]
public class Distance

The Distance type exposes the following members.

Constructors
  NameDescription
Public methodCode exampleDistance(Double)
Initializes Distance object based on distance in KM
Public methodCode exampleDistance(Double, DistanceType)
Initializes a Distance object based on a specified distance and measurement type.
Public methodCode exampleDistance(Coordinate, Coordinate)
Initializes a Distance object based on the distance between 2 coordinates using the default distance formula.
Public methodCode exampleDistance(Coordinate, Coordinate, Shape)
Initializes a Distance object based on the distance between 2 coordinates.
Top
Properties
  NameDescription
Public propertyBearing
Initial Bearing from Coordinate 1 to Coordinate 2
Public propertyFeet
Distance in Feet
Public propertyKilometers
Distance in Kilometers
Public propertyMeters
Distance in Meters
Public propertyMiles
Distance in Statute Miles
Public propertyNauticalMiles
Distance in Nautical Miles
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also