powered by
Calculate the path within a grid of an user-supplied function.
path_fn(x1, x2, fn, n = 50)
starting column value of the path
ending column value of the path
function returning row value for a column input
number of points along curve 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_intersection(), path_lerp(), path_ray(), path_rect(), path_shape()
path_arc()
path_bezier()
path_circle()
path_ellipse()
path_fill()
path_intersection()
path_lerp()
path_ray()
path_rect()
path_shape()
# NOT RUN { path_fn(x1=1, x2=10, function(x){sqrt(x)} ) # }
Run the code above in your browser using DataLab