aboutsummaryrefslogtreecommitdiffstats
path: root/librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-02-07 22:48:46 +0100
committerMattias Andrée <maandree@kth.se>2023-02-07 22:48:46 +0100
commite7b56841561f9a8bc40d8cebd9dae23b3c5951a2 (patch)
tree87b5e109a7c92fec341ad4096c315929dbb3979d /librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.h
parentAdd man pages (diff)
downloadlibrifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket-e7b56841561f9a8bc40d8cebd9dae23b3c5951a2.tar.gz
librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket-e7b56841561f9a8bc40d8cebd9dae23b3c5951a2.tar.bz2
librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket-e7b56841561f9a8bc40d8cebd9dae23b3c5951a2.tar.xz
Change back the name of rtgrpblib_draw_elliptical_arc to rtgrpblib_draw_circular_arc
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.h')
-rw-r--r--librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.h26
1 files changed, 18 insertions, 8 deletions
diff --git a/librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.h b/librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.h
index aa6f4ce..ef53fea 100644
--- a/librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.h
+++ b/librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.h
@@ -128,19 +128,29 @@ void rtgrpblib_draw_cubic_bezier(RTGRPBLIB_RASTER *restrict raster,
double x4, double y4);
/**
- * Draw a elliptical arc
+ * Draw a circular arc
*
* @param raster The drawing buffer
- * @param x0, y0 The midpoint of the ellipse
- * @param semiwidth Half the width of the ellipse
- * @param semiheight Half the height of the ellipse
+ * @param x0, y0 The midpoint of the circle
+ * @param semiwidth Half the width of the circle
+ * @param semiheight Half the height of the circle
* @param start The angular starting point of the arc, in radians
* @param end The angular end point of the arc, in radians
+ *
+ * Rather than specify a radius, a semimajor and semiminor is
+ * specified, despite this, the shape is called a circular rather
+ * than elliptical, this is because the function is indented to
+ * draw a circular arc on a image with different horizontal
+ * and vertical cell densities; note an elliptical arc on an image
+ * with the same horizontal as vertical cell density. This is
+ * why the function doesn't provide a way to rotate the ellipse:
+ * it's a circle, not an ellipse, and circles are perfectly
+ * symmetrical
*/
-void rtgrpblib_draw_elliptical_arc(RTGRPBLIB_RASTER *restrict raster,
- double x0, double y0,
- double semiwidth, double semiheight,
- double start, double end);
+void rtgrpblib_draw_circular_arc(RTGRPBLIB_RASTER *restrict raster,
+ double x0, double y0,
+ double semiwidth, double semiheight,
+ double start, double end);
#if defined(__clang__)