Simulates xy coordinates for a circle of given radius. Created for package testing purposes, but might be useful for others.
Usage
sim_circle(r = 1, n = 100, mid = c(0, 0))
Examples
circ <- sim_circle()
plot(circ)
circularity(circ)
#> [1] 0.9998321
perimeter(circ)
#> [1] 6.282131