| 54 | py = double(y - window_h / 2) / cam_zoom - cam_y; |
| 55 | } |
| 56 | void 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 |
| 62 | void mandelbrot(double& x, double& y, double cx, double cy) { |