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: 19.0.0.0 (11.1.1.1111)
Syntax public static int GridpointSearch(
this IRes1DReach reach,
double chainage
)
<ExtensionAttribute>
Public Shared Function GridpointSearch (
reach As IRes1DReach,
chainage As Double
) As Integer
public:
[ExtensionAttribute]
static int GridpointSearch(
IRes1DReach^ reach,
double chainage
)
Parameters
- reach
- Type: DHI.Mike1D.ResultDataAccessIRes1DReach
[Missing <param name="reach"/> documentation for "M:DHI.Mike1D.ResultDataAccess.Res1DExtensions.GridpointSearch(DHI.Mike1D.ResultDataAccess.IRes1DReach,System.Double)"]
- chainage
- Type: SystemDouble
[Missing <param name="chainage"/> documentation for "M:DHI.Mike1D.ResultDataAccess.Res1DExtensions.GridpointSearch(DHI.Mike1D.ResultDataAccess.IRes1DReach,System.Double)"]
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