powered by
Calculate the path of a circle in a grid.
path_circle(yx, r = 1, n = 50)
center (row, col) coordinate
(row, col)
radius of the circle in grid points
number of points along curve to calculate
Nx2 matrix of (row, column) coordinates
(row, column)
Other path-fitting functions: path_arc(), path_bezier(), path_ellipse(), path_fill(), path_fn(), path_intersection(), path_lerp(), path_ray(), path_rect(), path_shape()
path_arc()
path_bezier()
path_ellipse()
path_fill()
path_fn()
path_intersection()
path_lerp()
path_ray()
path_rect()
path_shape()
# NOT RUN { path_circle(yx=c(10,10), r=5) # }
Run the code above in your browser using DataLab