| circle_intersection_area | R Documentation |
Mirrors 'src/utils/proportionalLayout.ts circleIntersectionArea' (web tool) and Python 'circle_intersection_area' byte-for-byte.
circle_intersection_area(r1, r2, d)
r1 |
Radius of circle 1 (positive numeric). |
r2 |
Radius of circle 2 (positive numeric). |
d |
Distance between centers (non-negative numeric). |
Numeric: 0 if circles are disjoint, pi * min(r1,r2)^2 if fully nested, else the lens-shaped intersection area.
circle_intersection_area(1, 1, 1) # ~ 1.228
circle_intersection_area(1, 1, 3) # 0 (disjoint)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.