View source: R/utility_geometry.R
circle_area_positive | R Documentation |
Calculate the area of a circle that lies on the positive side of a two-dimensional cartesian coordinate system
circle_area_positive(x, y, d)
x, y |
x, y position of the circle midpoint (scalar) |
d |
diameter of the circle |
area (scalar)
#complete on positive sides circle_area_positive(1, 1, 2) #crossing x-axis only circle_area_positive(0, 1, 2) circle_area_positive(-0.5, 1, 2) #crossing y-axis only circle_area_positive(1, 0, 2) #crossing both axes circle_area_positive(0.5, 0.5, 2) circle_area_positive(-0.5, -0.5, 2) #fully on negative side circle_area_positive(-1, -1, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.