arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1106.3787physics.comp-phcs.CG
收藏

计算椭圆重叠面积

Calculating ellipse overlap areas

Gary B. Hughes, Mohcine Chraibi

摘要:

本文提出了一种求椭圆重叠面积的通用算法。该算法是基于找到一个段区域(椭圆和割线之间的区域)给定的两个点的椭圆。高斯-格林公式用于确定两点之间的椭圆扇区面积,并且添加或减去三角形面积以给出段面积。对于两个椭圆,重叠面积通过将适当扇区和多边形的面积相加来计算。两个一般的椭圆的交点,发现使用法拉利的四次公式来解决的多项式,从两个椭圆方程相结合的结果。处理交点数量(0,1,2,3,4)的所有情况。该算法是在C代码中实现的,并已与一系列的输入椭圆进行了测试。该代码对于需要许多重叠面积计算的模拟是足够有效的。

英文摘要:

We present a general algorithm for finding the overlap area between two ellipses. The algorithm is based on finding a segment area (the area between an ellipse and a secant line) given two points on the ellipse. The Gauss-Green formula is used to determine the ellipse sector area between two points, and a triangular area is added or subtracted to give the segment area. For two ellipses, overlap area is calculated by adding the areas of appropriate sectors and polygons. Intersection points for two general ellipses are found using Ferrari's quartic formula to solve the polynomial that results from combining the two ellipse equations. All cases for the number of intersection points (0, 1, 2, 3, 4) are handled. The algorithm is implemented in c-code, and has been tested with a range of input ellipses. The code is efficient enough for use in simulations that require many overlap area calculations.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑