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

Function sfx

Main.cpp:83–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 y = z.imag();
82}
83void sfx(double& x, double& y, double cx, double cy) {
84 std::complex<double> z(x, y);
85 std::complex<double> c2(cx*cx, cy*cy);
86 z = z * (x*x + y*y) - (z * c2);
87 x = z.real();
88 y = z.imag();
89}
90void henon(double& x, double& y, double cx, double cy) {
91 double nx = 1.0 - cx*x*x + y;
92 double ny = cy*x;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected