FloodMapExtensionsCalculateLocalBottomLevel Method

Calculates the local bottom level for the coordinate, by interpolation.

In case more than one cross section line segment contains x, the first is returned.

Definition

Namespace: DHI.Mike1D.FloodMap
Assembly: DHI.Mike1D.FloodMap (in DHI.Mike1D.FloodMap.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public static double CalculateLocalBottomLevel(
	this IReadOnlyList<INetworkCrossSectionPoint> points,
	double x,
	bool xIncreasing = false
)

Parameters

points  IReadOnlyListINetworkCrossSectionPoint
Cross section points
x  Double
Coordinate along cross section. Need not start at zero.
xIncreasing  Boolean  (Optional)
Bool indicating if x-coordinates are monotonically increasing and fast searching is possible

Return Value

Double
Local bottom level

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IReadOnlyListINetworkCrossSectionPoint. 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