bezierInterpolate4Points: bezierInterpolate4Points

View source: R/A020_bezierInterpolate4Points.R

bezierInterpolate4PointsR Documentation

bezierInterpolate4Points

Description

Performs a bezier interpolation based on four points. Instead of requiring the middle two points, the angle of vectors from the start to point 2 and from the end to point 3 are required.

Usage

bezierInterpolate4Points(x, y, angles, tseq, tanInf = 100)

Arguments

x, y

co-ordinates of the start and end points.

angles

the first angle is the from the start and the second is from the end.

tseq

sequence of parameters for the bezier curve

tanInf

value at which tan of angle is considered large enough to be infinite. I think this avoids dividing by zero? or smoother vertical lines???

Value

Returns a curve of points. See bezier() in the bezier package for more details.

Examples

print(1+1)

R-graphic-design/RGD documentation built on Jan. 2, 2023, 10:30 p.m.