Click or drag to resize

EngineReachGetClosestUpstreamGridPoint Method (Double, PredicateGridPoint, Boolean)

Find the specified type of gridpoint which is closest to the given location upstream.

It is assumed that the EngineReach max and min chainages are containing the given chainage, otherwise null is returned.

Namespace:  DHI.Mike1D.Engine
Assembly:  DHI.Mike1D.Engine (in DHI.Mike1D.Engine.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public GridPoint GetClosestUpstreamGridPoint(
	double chainage,
	Predicate<GridPoint> match,
	bool allowExact
)

Parameters

chainage
Type: SystemDouble
Chainage value to start search at
match
Type: SystemPredicateGridPoint
The Predicate delegate that defines the conditions of the element to search for.
allowExact
Type: SystemBoolean
Boolean specifying whether if a grid point is found at exactly the chainage value is to be included in the search.

Return Value

Type: GridPoint
Closest HGridPoint, null if none exists
See Also