path_bezier: Bezier Curve Path

Description Usage Arguments Value See Also Examples

View source: R/7-Path.R

Description

Calculate the path of a Bezier Curve with up to two control points in a grid.

Usage

1
path_bezier(start, end, c1, c2 = NULL, n = 50)

Arguments

start

starting (row, col) coordinate

end

ending (row, col) coordinate

c1

coordinate of first control point

c2

coordinate of second control point

n

number of points along curve to calculate

Value

Nx2 matrix of (row, column) coordinates

See Also

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

Examples

1
path_bezier(start=c(10,1), end=c(10,10), c1=c(1, 3))

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