A utility function to create X/Y positions on a circle. The algorithm adapted from <https://www.geeksforgeeks.org/mid-point-circle-drawing-algorithm/>

midPtCir(x0, y0, r)

Arguments

x0

a numeric, defines the x coordinate of the circle's centre.

y0

a numeric, defines the y coordinate of the circle's centre.

r

a numeric, defines the circle's radius.

Value

a numeric matrix.

Examples

library(ARCOS)
mcir = ARCOS:::midPtCir(1.4, 4.3, 5)