- foxes.utils.two_circles.area(r1, r2, d)[source]
Calculates the intersection of two circles with radii r1, r2 and a centre point distance d.
Make sure that
r1 >= r2
r1 - r2 <= d <= r1 + r2
These conditions are assumed but not checked within the function.
Source: https://diego.assencio.com/?index=8d6ca3d82151bad815f78addf9b5c1c6
Parameters¶
- r1: float or numpy.ndarray
The radius of circle 1
- r2: float or numpy.ndarray
The radius of circle 2
- d: float or numpy.ndarray
The distance between the centre points of the two circles
Returns¶
- area: float or numpy.ndarray
The intersectional area