Click or drag to resize

CrossSectionPointListFindPointIndex Method (Double, Double, Boolean)

finds the 0-BASED index (within the list) of the first point with given x coordinate, -1 if not found, and indicate if there are several points at that x.

Namespace:  DHI.Mike1D.CrossSectionModule
Assembly:  DHI.Mike1D.CrossSectionModule (in DHI.Mike1D.CrossSectionModule.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public int FindPointIndex(
	double x,
	double xTolerance,
	out bool bNonUnique
)

Parameters

x
Type: SystemDouble
x location
xTolerance
Type: SystemDouble
the tolerance (in absolute x units) to search within
bNonUnique
Type: SystemBoolean
true iff more than 1 points are at that x location

Return Value

Type: Int32
index in list iff found, otherwise -1
See Also