path_lerp: Linear Interpolation Path

Description Usage Arguments Value See Also Examples

View source: R/7-Path.R

Description

Interpolate between two points in a grid.

Usage

1
path_lerp(start, end, n = 50)

Arguments

start

starting (row, col) coordinate

end

ending (row, col) coordinate

n

number of points along curve to calculate

Value

Nx2 matrix of (row, column) coordinates

See Also

Other path-fitting functions: path_arc(), path_bezier(), path_circle(), path_ellipse(), path_fill(), path_fn(), path_intersection(), path_ray(), path_rect(), path_shape()

Examples

1
path_lerp(start=c(10,1), end=c(1,3))

cursr documentation built on Jan. 13, 2021, 7:35 a.m.