interval_contains

static IntervalTree.interval_contains(interval, point)[source]

Checks whether a point lies in a interval.

Parameters
  • interval – A tuple of two numbers: the lower and higher bound of the first interval.

  • point – The point (just a number)

Returns

True if point lies in the interval.