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

Function PtToScreen

Main.cpp:56–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 py = double(y - window_h / 2) / cam_zoom - cam_y;
55}
56void PtToScreen(double px, double py, int& x, int& y) {
57 x = int(cam_zoom * (px + cam_x)) + window_w / 2;
58 y = int(cam_zoom * (py + cam_y)) + window_h / 2;
59}
60
61//All fractal equations
62void mandelbrot(double& x, double& y, double cx, double cy) {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected