chickadee » srfi-179 » interval-contains-multi-index?

interval-contains-multi-index? interval index-0 index-1 ...procedure

If interval is an interval with dimension $d$ and index-0, index-1, ..., is a multi-index of length $d$, then interval-contains-multi-index? returns #t if

(interval-lower-bound interval j) $\leq$ index-j $<$ (interval-upper-bound interval j)

for $0\leq j < d$, and #f otherwise.

It is an error to call interval-contains-multi-index? if interval and index-0,..., do not satisfy this condition.