foxes.utils.two_circles.calc_area(r1, r2, d)[source]

Calculates the intersection of two circles.

All parameters should have the same shape, or be broadcastable to one another.

Parameters

r1: numpy.ndarray

The radius of circle 1

r2: numpy.ndarray

The radius of circle 2

d: numpy.ndarray

The distance between the centre points of the two circles

Returns

area: numpy.ndarray

The intersectional area