powered by
Calculate the path of a shape given supplied vertices.
path_shape(mat, cycle = TRUE, n = 30)
an Nx2 matrix of (row, col) coordinates
(row, col)
logical value determining whether to the first and last coordinates
number of points along each edge to calculate
Nx2 matrix of (row, column) coordinates
(row, column)
Other path-fitting functions: path_arc(), path_bezier(), path_circle(), path_ellipse(), path_fill(), path_fn(), path_intersection(), path_lerp(), path_ray(), path_rect()
path_arc()
path_bezier()
path_circle()
path_ellipse()
path_fill()
path_fn()
path_intersection()
path_lerp()
path_ray()
path_rect()
# NOT RUN { # Right Triangle path_shape(rbind( c(10,1), c(10,10), c(1,1) ), cycle=TRUE) # }
Run the code above in your browser using DataLab