foxes.utils.two_circles.area

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

  1. r1 >= r2

  2. r1 - r2 <= d <= r1 + r2

These conditions are assumed but not checked within the function.

Source: https://diego.assencio.com/?index=8d6ca3d82151bad815f78addf9b5c1c6

Parameters:
Returns:

area – The intersectional area

Return type:

float or numpy.ndarray