path_shape {cursr} | R Documentation |
Calculate the path of a shape given supplied vertices.
path_shape(mat, cycle = TRUE, n = 30)
mat |
an Nx2 matrix of |
cycle |
logical value determining whether to the first and last coordinates |
n |
number of points along each edge to calculate |
Nx2 matrix of (row, column)
coordinates
Other path-fitting functions:
path_arc()
,
path_bezier()
,
path_circle()
,
path_ellipse()
,
path_fill()
,
path_fn()
,
path_intersection()
,
path_lerp()
,
path_ray()
,
path_rect()
# Right Triangle
path_shape(rbind(
c(10,1),
c(10,10),
c(1,1)
), cycle=TRUE)