cf_bezier2¶
Category: math
GitHub: cute_math.h
Returns a point along a cubic bezier curve according to time t.
CF_V2 cf_bezier2(CF_V2 a, CF_V2 c0, CF_V2 c1, CF_V2 b, float t) { return cf_bezier(cf_lerp(a, c0, t), cf_lerp(c0, c1, t), cf_lerp(c1, b, t), t); }
| Parameters | Description |
|---|---|
a |
The start point. |
c0 |
A control point. |
c1 |
A control point. |
b |
The end point. |
t |
A position along the curve. |