|
|
| File Information |
| Description |
Compute the overlap area between 2 circles defined in an array Computation is vectorized, and intersection area are computed an analytical way.
Input: Circles data presented in an array G of three columns.
G contains parameters of the n circles
. G(1:n,1) - x-coordinate of the center of circles,
. G(1:n,2) - y-coordinate of the center of circles,
. G(1:n,3) - radii of the circles
Each row of the array contains the information for one circle.
Input can also be provided in three different vectors. These vectors can be row or column vectors. The 1st one corresponds to x-coordinate of the center of circles, the 2nd one to the y-cooridnate and the 3rd one to the radii of the circles.
Output: Square matrix M(n,n) containing intersection areas between circles
M(i,j) contains the intersection area between circles i & j
By definition, M(i,i) corresponds to the area of circle i. |
| MATLAB release |
MATLAB 7 (R14)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (9) |
| 10 Aug 2007 |
John D'Errico
|
|
|
| 13 Aug 2007 |
Pierre Launay
|
|
|
| 13 Aug 2007 |
John D'Errico
|
|
|
| 14 Aug 2007 |
Benjamin Le Blan
|
|
|
| 08 May 2008 |
walid osamy
|
|
|
| 18 Nov 2008 |
M. A. Hopcroft
|
|
|
| 29 Apr 2009 |
Idillus
|
|
|
| 16 Jun 2009 |
Osama
|
|
|
| 16 Jun 2009 |
John D'Errico
|
|
|
| Updates |
| 13 Aug 2007 |
Some comments were added to ease the use of the function. Precise description of the user inputs is described.
Some argument verifications are also performed.
Finally, the number of calculations has been divided by two.
Thanks John D'Errico! |
| 13 Aug 2007 |
Some explanations, comments were added. Input arguments are detailed.
Verifications of input arguments are performed.
The number of calculations has been divided by two.
Thanks John D'Errico |
| 14 Aug 2007 |
A mistake was identified with boundary conditions. I did not take into account the fact that one can wanted to compute the overlap area between two identical circles. Thanks Eric Le Page |
|
MATLAB Central Terms of Use
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.
Contact us at files@mathworks.com