Skip to content

Commit

Permalink
Add a few function-level comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
anachrocomputer committed Sep 20, 2020
1 parent 630887d commit 9991af9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions reuleaux.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ void plot_lr(const double x0, const double y0, const double width, const double
}


/* reuleaux --- draw a Reuleaux polygon centred on (xc, yc) */

void reuleaux(const double xc, const double yc, const double r, const int n, const bool drawSides)
{
/* https://en.wikipedia.org/wiki/Reuleaux_triangle */
Expand Down
2 changes: 2 additions & 0 deletions star_grid.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ int main(int argc, char * const argv[])
}


/* draw_star --- draw a single star at (x0, y0) */

void draw_star(const double x0, const double y0, const double gridsz, const double xc, const double yc, const int n)
{
int i;
Expand Down
2 changes: 2 additions & 0 deletions superellipse.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ void plot_ur(const double xc, const double yc, const double r1, const double r2)
}


/* superellipse --- draw a superellipse at (x0, y0) */

void superellipse(const double x0, const double y0, const double a, const double b, const double theta, const double d)
{
const int npts = 72;
Expand Down
2 changes: 2 additions & 0 deletions ternary_arcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ int main(int argc, char * const argv[])
}


/* draw_arcs --- draw arcs or lines at (x, y) */

void draw_arcs(const double x, const double y, const double r, const char str[])
{
moveto(x, y + r);
Expand Down

0 comments on commit 9991af9

Please sign in to comment.