powered by
Calculate the path of a rectangle in a grid.
path_rect(yx1, yx2)
upper-left (row, col) coordinate
(row, col)
lower-right (row, col) coordinate
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_shape()
path_arc()
path_bezier()
path_circle()
path_ellipse()
path_fill()
path_fn()
path_intersection()
path_lerp()
path_ray()
path_shape()
# NOT RUN { path_rect(c(5,5), c(9,9)) # }
Run the code above in your browser using DataLab