X-Git-Url: http://www2.svjatoslav.eu/gitweb/?p=sixth-3d-demos.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fsixth%2Fe3d%2Fexamples%2FGraphDemo.java;h=c28dd1425f836fefb43f2845f5b08ff3df42466d;hp=5e2009d7578955bc0c8d9a2fee203570633b5256;hb=f5b086a876fc92f358032a12ffbecf854745bbaa;hpb=04e601452e1e31d14f13b50c1fce9cc6081a8bf2 diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/examples/GraphDemo.java b/src/main/java/eu/svjatoslav/sixth/e3d/examples/GraphDemo.java index 5e2009d..c28dd14 100644 --- a/src/main/java/eu/svjatoslav/sixth/e3d/examples/GraphDemo.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/examples/GraphDemo.java @@ -22,8 +22,7 @@ public class GraphDemo { private static final double scale = 50d; - private static Graph getCosineGraph(final Point3D location) - throws IOException { + private static Graph getCosineGraph(final Point3D location) { final List data = new ArrayList<>(); for (double x = 0; x < 20; x += 0.25) { final double y = Math.cos(x); @@ -35,8 +34,7 @@ public class GraphDemo { return new Graph(scale, data, "Cosine", location); } - private static Graph getFormula1Graph(final Point3D location) - throws IOException { + private static Graph getFormula1Graph(final Point3D location) { final List data = new ArrayList<>(); for (double x = 0; x < 20; x += 0.25) { final double y = Math.sin(Math.tan(x)); @@ -48,8 +46,7 @@ public class GraphDemo { return new Graph(scale, data, "y = sin(tan(x))", location); } - private static Graph getFormula2Graph(final Point3D location) - throws IOException { + private static Graph getFormula2Graph(final Point3D location) { final List data = new ArrayList<>(); for (double x = 0; x < 20; x += 0.25) { final double y = (Math.pow((10 - x), 2) / 30) - 2; @@ -61,8 +58,7 @@ public class GraphDemo { return new Graph(scale, data, "y = ( (10-x)^2 ) / 30", location); } - private static Graph getFormula3Graph(final Point3D location) - throws IOException { + private static Graph getFormula3Graph(final Point3D location) { final List data = new ArrayList<>(); for (double x = 0; x < 20; x += 0.25) { final double y = Math.sin(x / 2) + Math.sin(x / 1.26); @@ -74,8 +70,7 @@ public class GraphDemo { return new Graph(scale, data, "y = sin(x/2) + sin(x/1.26)", location); } - private static Graph getSineGraph(final Point3D location) - throws IOException { + private static Graph getSineGraph(final Point3D location) { final List data = new ArrayList<>(); for (double x = 0; x < 20; x += 0.25) { final double y = Math.sin(x); @@ -87,8 +82,7 @@ public class GraphDemo { return new Graph(scale, data, "Sine", location); } - private static Graph getTangentGraph(final Point3D location) - throws IOException { + private static Graph getTangentGraph(final Point3D location) { final List data = new ArrayList<>(); for (double x = 0; x < 20; x += 0.25) { double y = Math.tan(x);