PosInfInterval.intersects

Whether the given interval overlaps this interval.

  1. bool intersects(Interval!TP interval)
  2. bool intersects(PosInfInterval interval)
  3. bool intersects(NegInfInterval!TP interval)
    struct PosInfInterval(TP)
    const pure nothrow
    bool
    intersects
    (
    scope const NegInfInterval!TP interval
    )

Parameters

interval NegInfInterval!TP

The interval to check for intersection with this interval.

Examples

assert(!PosInfInterval!Date(Date(1996, 1, 2)).intersects(
            NegInfInterval!Date(Date(1996, 1, 2))));

assert(PosInfInterval!Date(Date(1996, 1, 2)).intersects(
            NegInfInterval!Date(Date(2000, 7, 1))));

Meta