Click or drag to resize

RMathAreIntervalsOverlappingCC Method

Tests if the interval [a0, a1] is overlapping with the interval [b0, b1]. The return value is true if the intervals overlap, or only touching each other (for instance, if a1==b0).

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static bool AreIntervalsOverlappingCC(
	double a0,
	double a1,
	double b0,
	double b1
)

Parameters

a0  Double
The start of the first interval (inclusive).
a1  Double
The end of the first interval (inclusive).
b0  Double
The start of the second interval (inclusive).
b1  Double
The end of the second interval (inclusive).

Return Value

Boolean
True if both intervals overlap or touch; otherwise, false.
See Also