Skip to content

cubicBezier2

cubicBezier2(p0, p1, p2, p3, t): Vec2

Defined in: bezier2.ts:49

Evaluates a cubic Bézier curve at parameter t:

B(t) = (1 − t)³·p0 + 3(1 − t)²t·p1 + 3(1 − t)t²·p2 + t³·p3

Vec2

Start point.

Vec2

First control point.

Vec2

Second control point.

Vec2

End point.

number

Curve parameter, normally in [0, 1].

Vec2

The point on the curve at t.