MATLAB Function Reference Previous page   Next Page
rectint

Rectangle intersection area.

Syntax

Description

area = rectint(A,B) returns the area of intersection of the rectangles specified by position vectors A and B.

If A and B each specify one rectangle, the output area is a scalar.

A and 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 A is n-by-4 and B is m-by-4, then area is an n-by-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 B.

See Also

polyarea


Previous page  Rectangle Properties recycle Next page

© 1994-2005 The MathWorks, Inc.