Learn R Programming

cograph (version 1.5.2)

bezier_points: Calculate Bezier Curve Points

Description

Calculate points along a quadratic Bezier curve.

Usage

bezier_points(x0, y0, x1, y1, x2, y2, n = 50)

Value

Data frame with x, y coordinates.

Arguments

x0, y0

Start point.

x1, y1

Control point.

x2, y2

End point.

n

Number of points to generate.