FloodMapExtensionsGetCrossSectionX Method

Returns the cross-sectional x coordinate at the relative coordinate v of the cross section

Zero is center of river, negative values are left of center, positive values are right of center.

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 GetCrossSectionX(
	this IFloodMapCrossSection cs,
	double v
)

Parameters

cs  IFloodMapCrossSection
Cross section
v  Double
Relative coordinate, ranging from -1 to 1

Return Value

Double
Cross-sectional x-coordinate

Usage Note

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