diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.h | 12 | ||||
-rw-r--r-- | rtgrpblib_draw_elliptical_arc.c (renamed from rtgrpblib_draw_circular_arc.c) | 4 |
3 files changed, 9 insertions, 9 deletions
@@ -25,7 +25,7 @@ OBJ =\ rtgrpblib_set_draftness.o\ draw_linear_bezier_reference.o\ lines.o\ - rtgrpblib_draw_circular_arc.o\ + rtgrpblib_draw_elliptical_arc.o\ rtgrpblib_draw_linear_bezier.o\ rtgrpblib_draw_quadratic_bezier.o\ rtgrpblib_draw_cubic_bezier.o\ diff --git a/librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.h b/librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.h index dd75db3..2ba9065 100644 --- a/librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.h +++ b/librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.h @@ -121,14 +121,14 @@ void rtgrpblib_draw_quadratic_bezier(RTGRPBLIB_RASTER *restrict raster, * @param x3, y3 The second control point * @param x4, y4 The end point */ -void rtgrpblib_draw_cubic_bezier(RTGRPBLIB_RASTER *restrict raster, /* needed for OpenType */ +void rtgrpblib_draw_cubic_bezier(RTGRPBLIB_RASTER *restrict raster, double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4); /** - * Draw a circular arc + * Draw a elliptical arc * * @param raster The drawing buffer * @param x0, y0 The midpoint of the ellipse @@ -137,10 +137,10 @@ void rtgrpblib_draw_cubic_bezier(RTGRPBLIB_RASTER *restrict raster, /* needed fo * @param start The angular starting point of the arc, in radians * @param end The angular end point of the arc, in radians */ -void rtgrpblib_draw_circular_arc(RTGRPBLIB_RASTER *restrict raster, /* needed for outline stoking */ - double x0, double y0, - double semiwidth, double semiheight, - double start, double end); +void rtgrpblib_draw_elliptical_arc(RTGRPBLIB_RASTER *restrict raster, + double x0, double y0, + double semiwidth, double semiheight, + double start, double end); #if defined(__clang__) diff --git a/rtgrpblib_draw_circular_arc.c b/rtgrpblib_draw_elliptical_arc.c index f30fde7..514ea14 100644 --- a/rtgrpblib_draw_circular_arc.c +++ b/rtgrpblib_draw_elliptical_arc.c @@ -4,8 +4,8 @@ void -rtgrpblib_draw_circular_arc(RASTER *restrict raster, double x0, double y0, - double semiwidth, double semiheight, double start, double end) +rtgrpblib_draw_elliptical_arc(RASTER *restrict raster, double x0, double y0, + double semiwidth, double semiheight, double start, double end) { double inc, v, x, y, prevX, prevY; |