Function: pointInBox

CALL:

b = PointInBox(box, point)

DESCRIPTION:

Determine if points lie inside or on the boundary of a box

INPUT:

box any
box representation of rectangle [xmin xmax ymin ymax]
point any
[Nx2] array with the (x,y) coordinates of N points

OUTPUT:

b any
[Nx1] boolean array, b(i) is true if point(i,:) lies in or on the boundary of the box