Click or drag to resize

Distance Structure

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Represents a distance as a value and corresponding distance unit, for example meters.

Namespace:  Telogis.GeoBase.Measurement
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public struct Distance

The Distance type exposes the following members.

Constructors
  NameDescription
Public methodDistance
Creates a Distance object with the specified value and distance unit.
Top
Properties
  NameDescription
Public propertyStatic memberZero
Returns a zero distance object, with a distance unit of meters.
Top
Methods
  NameDescription
Public methodConvert
Returns the numeric distance value converted to the specified distance unit.
Public methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Returns a Distance object that is the sum of the two specified Distance objects' values.
Public operatorStatic memberDivision
Returns a Distance object that has a specified Distance object's value divided by another distance value. The returned Distance object has the same distance unit as the specified Distance object.
Public operatorStatic memberMultiply(Distance, Double)
Returns a Distance object that is the product of a Distance object's value and a distance value. The returned Distance object has the same distance unit as the specified Distance object.
Public operatorStatic memberMultiply(Double, Distance)
Returns a Distance object that is the product of a distance value and a Distance object's value. The returned Distance object has the same distance unit as the specified Distance object.
Public operatorStatic memberSubtraction
Returns a Distance object that is the difference between the first specified Distance object and the second specified Distance object.
Top
Fields
  NameDescription
Public fieldUnit
The distance unit used to interpret the value of this Distance object.
Public fieldValue
The numeric value of the distance, expressed in the specified distance unit.
Top
See Also