From 6fd61db17fc695355d0c604507e7a86b0e84eba2 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Thu, 4 Jun 2015 22:33:05 +0200 Subject: Started own version --- Week15 Mandelbrot/src/mandelbrot/Area.java | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 Week15 Mandelbrot/src/mandelbrot/Area.java (limited to 'Week15 Mandelbrot/src/mandelbrot/Area.java') diff --git a/Week15 Mandelbrot/src/mandelbrot/Area.java b/Week15 Mandelbrot/src/mandelbrot/Area.java deleted file mode 100644 index 75331e3..0000000 --- a/Week15 Mandelbrot/src/mandelbrot/Area.java +++ /dev/null @@ -1,27 +0,0 @@ -package mandelbrot; - -/** - * - * @author Sjaak - */ -public class Area { - private final double startX, startY, width, height; - - public Area (double x_tl, double y_tl, double width, double height) { - startX = x_tl; startY = y_tl; this.width = width; this.height = height; - } - - public double getX () { return startX; } - public double getY () { return startY; } - public double getWidth () { return width; } - public double getHeight () { return height; } - - public Area zoom (int xul, int yul, int zw, int zh, int tw, int th) { - double zoom_fact = ((double) zw) / tw; - return new Area (startX + (width * xul) / tw, - startY - (height * yul) / th, - width * zoom_fact, - height * zoom_fact); - } - -} -- cgit v1.2.3