Click or drag to resize

DistanceCalculator Class

Class to calculate distances from a location to any point in the network.

Use CalculateDistances(ILocation) to start a calculation, and extract data from Distances.

Inheritance Hierarchy
SystemObject
  DHI.Mike1D.EngineDistanceCalculator

Namespace:  DHI.Mike1D.Engine
Assembly:  DHI.Mike1D.Engine (in DHI.Mike1D.Engine.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public class DistanceCalculator

The DistanceCalculator type exposes the following members.

Constructors
  NameDescription
Public methodDistanceCalculator
Create object working on provided engineNet
Top
Properties
  NameDescription
Public propertyDistances
Distances from location to any other node and grid point in the network

The value double.MaxValue is used when the node/grid point is more than MaxDistance from the location, or if the node/grid-point is not reachable from the location

Public propertyMaxDistance
Maximum distance from search location to calculate distance. Outside this distance, the results in the Distances may be double.MaxValue.
Public propertyUseSignedDistance
Flag specifying whether to calculate signed distances, i.e. distance is positive in down-stream direction and negative in up-stream direction from location
Top
Methods
  NameDescription
Public methodCalculateDistances(ILocation)
Calculate distances from location to any other grid point and node within the network
Public methodCalculateDistances(INetworkLocation)
Calculate distances from location to any other grid point and node within the network
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