The OpenD Programming Language

PosInfInterval.intersects

Whether the given interval overlaps this interval.

Always returns true because two intervals going to positive infinity always overlap.

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

Parameters

interval PosInfInterval

The interval to check for intersection with this interval.

Examples

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

assert(PosInfInterval!Date(Date(1996, 1, 2)).intersects(
            PosInfInterval!Date(Date(1999, 5, 4))));

Meta