http://www.cs.cornell.edu/Info/Courses/Spring-96/CS100/programs/program1.html
curve.c
program, remember to change the following lines in the
CompoundCurve
function.
Change
toint xm = (x2 + x1 + y2 - y1) / 2.0; int ym = (y2 + y1 - x2 + x1) / 2.0;
double xm = (x2 + x1 + y2 - y1) / 2.0; double ym = (y2 + y1 - x2 + x1) / 2.0;