#include #include #include "./draw/sdlwrapper.h" // void drawSaw(int startY, int toothSize, int nTeeth) // { // for(int i = 0; i < nTeeth; ++i) // { // sdlw::drawLine(2*i*toothSize,0+startY,(2*i+1)*toothSize,toothSize+startY); // sdlw::drawLine((2*i+1)*toothSize,toothSize+startY,2*(i+1)*toothSize,0+startY); // } // sdlw::drawLine(0,0+startY,2*nTeeth*toothSize,0+startY); // } struct Points { int x; int y; }; Points drawSinus(int x0, int y0, double freq, double ampl, int number, double prec, int rot ,int way, int startFrom,int endTo) { int x =0; int y =0; for(double j =0; jy || yEnd