MCPcopy Create free account
hub / github.com/HackerPoet/FractalSoundExplorer / ikeda

Function ikeda

Main.cpp:102–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 y = ny;
101}
102void ikeda(double& x, double& y, double cx, double cy) {
103 double t = 0.4 - 6.0 / (1.0 + x*x + y*y);
104 double st = std::sin(t);
105 double ct = std::cos(t);
106 double nx = 1.0 + cx*(x*ct - y*st);
107 double ny = cy*(x*st + y*ct);
108 x = nx;
109 y = ny;
110}
111void chirikov(double& x, double& y, double cx, double cy) {
112 y += cy*std::sin(x);
113 x += cx*y;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected