|MATLAB Function Reference|
Rectangle intersection area.
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
A with all the rectangles specified by
B. That is, if
area is an
m matrix where
area(i,j) is the intersection area of the rectangles specified by the
ith row of
A and the
jth row of
A position vector is a four-element vector |