Click or drag to resize

GenericExtensionsOverLap Method (ILocationSpan, ILocationSpan)

Calculate overlap of location span and 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,
	ILocationSpan other
)

Parameters

span
Type: DHI.Mike1D.GenericILocationSpan

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

other
Type: DHI.Mike1D.GenericILocationSpan

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

Return Value

Type: Double

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

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