Res1DExtensionsGridpointSearch Method
Extension method searching within the grid points of a reach, using
a binary search routine.
Namespace: DHI.Mike1D.ResultDataAccessAssembly: DHI.Mike1D.ResultDataAccess (in DHI.Mike1D.ResultDataAccess.dll) Version: 24.0.0.0 (11.1.1.1111)
public static int GridpointSearch(
this IRes1DReach reach,
double chainage
)
- reach IRes1DReach
[Missing <param name="reach"/> documentation for "M:DHI.Mike1D.ResultDataAccess.Res1DExtensions.GridpointSearch(DHI.Mike1D.ResultDataAccess.IRes1DReach,System.Double)"]
- chainage Double
[Missing <param name="chainage"/> documentation for "M:DHI.Mike1D.ResultDataAccess.Res1DExtensions.GridpointSearch(DHI.Mike1D.ResultDataAccess.IRes1DReach,System.Double)"]
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.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).