Res1DExtensionsGridpointSearch Method |
Extension method searching within the grid points of a reach, using
a binary search routine.
Namespace:
DHI.Mike1D.ResultDataAccess
Assembly:
DHI.Mike1D.ResultDataAccess (in DHI.Mike1D.ResultDataAccess.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax public static int GridpointSearch(
this IRes1DReach reach,
double chainage
)
Parameters
- reach
- Type: DHI.Mike1D.ResultDataAccessIRes1DReach
- chainage
- Type: SystemDouble
Return Value
Type:
Int32The zero-based index of grid point, if an exact match is found;
otherwise, a negative number that is the bitwise complement
of the index of the next grid point with chainage that is larger or,
if there is no larger element, the bitwise complement of Count.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IRes1DReach. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also