Bezier Curve Generator

Instructions

Create and manipulate Bezier curves by adjusting control points. The position, velocity, and acceleration of the curve are displayed in separate plots.

Bezier Curve Equation

The Bezier curve is defined by the parametric equations:

$$\mathbf{B}(t) = \sum_{i=0}^{n} \mathbf{P}_i \cdot B_{i,n}(t)$$
$$x(t) = \sum_{i=0}^{n} P_{i,x} \cdot B_{i,n}(t)$$ $$y(t) = \sum_{i=0}^{n} P_{i,y} \cdot B_{i,n}(t)$$

where the Bernstein basis polynomials are:

$$B_{i,n}(t) = \binom{n}{i} t^i (1-t)^{n-i}$$

and the binomial coefficient is:

$$\binom{n}{i} = \frac{n!}{i!(n-i)!}$$

with $t \in [0,1]$ and $n$ = number of control points - 1

Current Control Points

Control points will appear here when you interact with the curve.

Position (Canvas)

Position (Plotly Interactive)

Velocity (dx/dt, dy/dt vs. t)

Acceleration (d²x/dt², d²y/dt² vs. t)