Cubic Bézier samples

Sample a cubic Bézier curve with tangent vectors and a polyline length estimate.

The example value has been entered. Check it immediately or change the value.

Input is processed in the browser. Refreshing returns a sample value.

Result

Instructions and example

B(t)=(1−t)³P₀+3(1−t)²tP₁+3(1−t)t²P₂+t³P₃

The default curve passes through (2, 2.25) at t=0.5; its 10-interval length estimate is about 6.37493.

Use 4 control points and 2–100 intervals; curve length is a sampled approximation.

Frequently asked questions

Are Bézier sample intervals equal distances?

No. The parameter t is evenly spaced; curve speed determines the distance between samples.

Is the Bézier length an exact arc length?

It is the sum of chords connecting samples. Increase the sample count to compare approximation changes.

Calculation criteria and reference materials

Verification of calculation criteria: · Calculation·verification principles · Report errors