Click or drag to resize

GenericExtensionsOverLap Method (ILocationSpan, Double, Double)

Calculate overlap of location span and the chainages of another locationSpan. If the result is positive, the value is the actual overlap. If the result is negative, there is no overlap, and the value is the negative distance between the two spans.

Namespace:  DHI.Mike1D.Generic
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public static double OverLap(
	this ILocationSpan span,
	double startChainage,
	double endChainage
)

Parameters

span
Type: DHI.Mike1D.GenericILocationSpan

[Missing <param name="span"/> documentation for "M:DHI.Mike1D.Generic.GenericExtensions.OverLap(DHI.Mike1D.Generic.ILocationSpan,System.Double,System.Double)"]

startChainage
Type: SystemDouble

[Missing <param name="startChainage"/> documentation for "M:DHI.Mike1D.Generic.GenericExtensions.OverLap(DHI.Mike1D.Generic.ILocationSpan,System.Double,System.Double)"]

endChainage
Type: SystemDouble

[Missing <param name="endChainage"/> documentation for "M:DHI.Mike1D.Generic.GenericExtensions.OverLap(DHI.Mike1D.Generic.ILocationSpan,System.Double,System.Double)"]

Return Value

Type: Double

[Missing <returns> documentation for "M:DHI.Mike1D.Generic.GenericExtensions.OverLap(DHI.Mike1D.Generic.ILocationSpan,System.Double,System.Double)"]

Usage Note

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