diff options
Diffstat (limited to 'rtgrpblib_draw_cubic_bezier.c')
-rw-r--r-- | rtgrpblib_draw_cubic_bezier.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rtgrpblib_draw_cubic_bezier.c b/rtgrpblib_draw_cubic_bezier.c index 8e56474..c68ad88 100644 --- a/rtgrpblib_draw_cubic_bezier.c +++ b/rtgrpblib_draw_cubic_bezier.c @@ -88,6 +88,7 @@ draw_bounded_cubic_bezier(RASTER *restrict raster, double x1, double y1, double dy = evaluate_cubic_bezier_derivative(t, y1, y2, y3, y4); t += raster->draftness / hypot(dx, dy); + /* TODO deal with unchanged t and oversized steps (e.g. locally zero derivative) */ t = fmin(t, t2); x = evaluate_cubic_bezier(t, x1, x2, x3, x4); y = evaluate_cubic_bezier(t, y1, y2, y3, y4); |