Function: boxIntersect

CALL:

box = boxIntersect(box1, box2)

DESCRIPTION:

boxIntersect, compute the intersection of two boxes

INPUT:

box1 any
box representation of rectangle [xmin xmax ymin ymax]
box2 any
box representation of rectangle [xmin xmax ymin ymax]

OUTPUT:

box any
box representation of the intersecting rectangle [xmin xmax ymin ymax]