Rectangle intersection area
area = rectint(A,B)
area = rectint(A,B) returns
the area of intersection of the rectangles specified by position vectors
B each specify
one rectangle, the output
area is a scalar.
B can also be matrices,
where each row is a position vector.
area is then
a matrix giving the intersection of all rectangles specified by
all the rectangles specified by
B. That is, if
area is an
area(i,j) is the intersection area of the
rectangles specified by the
ith row of
jth row of
A position vector is a four-element vector
where the point defined by
one corner of the rectangle, and
the size in units along the x and y axes respectively.