Commit 4257a3aad32c88db67a17e22a0e00b803ddde7de
1 parent
43b5b159
Added comment to draw_bullet()
Showing
1 changed file
with
1 additions
and
0 deletions
07-tapered_bullet/cannon.c
@@ -68,6 +68,7 @@ void move_target(struct target *t) { | @@ -68,6 +68,7 @@ void move_target(struct target *t) { | ||
68 | 68 | ||
69 | // draw isosceles trapezoid with the center of larger base at (x1,y1), center of smaller base at (x2,y2) | 69 | // draw isosceles trapezoid with the center of larger base at (x1,y1), center of smaller base at (x2,y2) |
70 | // width - width of larger base, taper - ratio of smaller base to larger base | 70 | // width - width of larger base, taper - ratio of smaller base to larger base |
71 | +// see drawing in bullet.png | ||
71 | void draw_bullet(int x1, int y1, int x2, int y2, int width, double taper, int color) { | 72 | void draw_bullet(int x1, int y1, int x2, int y2, int width, double taper, int color) { |
72 | // define vector representing the central line | 73 | // define vector representing the central line |
73 | int dx = x2 - x1; | 74 | int dx = x2 - x1; |