contains

operator fun contains(x: Double): Boolean

Return

true if x is in the interval (includes end points)

Parameters

x

the value to check


operator fun contains(interval: Interval): Boolean

Checks if the supplied interval is contained within this interval

Return

true only if both lower and upper limits of supplied interval are within this interval

Parameters

interval

the interval to check