|
Algorithms_in_C++ 1.0.0
Set of algorithms implemented in C++.
|
Implementation of Spirograph More...
#include <array>#include <cmath>#include <cstdlib>#include <ctime>#include <fstream>#include <iomanip>#include <iostream>#include <sstream>Namespaces | |
| namespace | spirograph |
Macros | |
| #define | _USE_MATH_DEFINES |
Functions | |
| template<std::size_t N> | |
| void | spirograph::spirograph (std::array< std::pair< double, double >, N > *points, double l, double k, double rot) |
| void | spirograph::test () |
| Test function to save resulting points to a CSV file. | |
| int | main (int argc, char **argv) |
Implementation of Spirograph
Implementation of the program is based on the geometry shown in the figure below:
| #define _USE_MATH_DEFINES |
required for MSVC compiler
| int main | ( | int | argc, |
| char ** | argv ) |
Main function