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.
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
GPU Code Generation
Generate CUDA® code for NVIDIA® GPUs using GPU Coder™.
Run code in the background using MATLAB®
backgroundPool or accelerate code with Parallel Computing Toolbox™
This function fully supports thread-based environments. For more information, see Run MATLAB Functions in Thread-Based Environment.
Accelerate code by running on a graphics processing unit (GPU) using Parallel Computing Toolbox™.
This function fully supports GPU arrays. For more information, see Run MATLAB Functions on a GPU (Parallel Computing Toolbox).
Partition large arrays across the combined memory of your cluster using Parallel Computing Toolbox™.
This function fully supports distributed arrays. For more information, see Run MATLAB Functions with Distributed Arrays (Parallel Computing Toolbox).