Skip to contents

Generates points along a cubic Bezier curve.

Usage

cpp_generate_bezier(p0, p1, p2, p3, n_segments)

Arguments

p0

Start point (x, y)

p1

Control point 1 (x, y)

p2

Control point 2 (x, y)

p3

End point (x, y)

n_segments

Number of segments

Value

2 x (n_segments+1) matrix