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