chickadee » srfi-179 » interval-subset?

interval-subset? interval1 interval2procedure

If interval1 and interval2 are intervals of the same dimension $d$, then interval-subset? returns #t if

(>= (interval-lower-bound interval1 j) (interval-lower-bound interval2 j))

and

(<= (interval-upper-bound interval1 j) (interval-upper-bound interval2 j))

for all $0\leq j<d$, otherwise it returns #f. It is an error if the arguments do not satisfy these conditions.