Analytical intersection area between two circles

버전 1.0.0.0 (3.51 KB) 작성자: Guillaume JACQUENOT
Compute the intersection area between 2 circles. The function allows to evaluate the intersection ar
다운로드 수: 3.7K
업데이트 날짜: 2007/8/14

라이선스 보기

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.

인용 양식

Guillaume JACQUENOT (2024). Analytical intersection area between two circles (https://www.mathworks.com/matlabcentral/fileexchange/15899-analytical-intersection-area-between-two-circles), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R14
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Linear Algebra에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

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