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