projects
/
sixth-3d-demos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changed license to CC0
[sixth-3d-demos.git]
/
src
/
main
/
java
/
eu
/
svjatoslav
/
sixth
/
e3d
/
examples
/
GraphDemo.java
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
679e43f
..
ce5f1c6
100644
(file)
--- a/
src/main/java/eu/svjatoslav/sixth/e3d/examples/GraphDemo.java
+++ b/
src/main/java/eu/svjatoslav/sixth/e3d/examples/GraphDemo.java
@@
-1,10
+1,8
@@
/*
/*
- * Sixth 3D engine demos. Copyright ©2012-2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Sixth 3D engine demos. Author: Svjatoslav Agejenko.
+ * This project is released under Creative Commons Zero (CC0) license.
*
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of version 3 of the GNU Lesser General Public License
- * or later as published by the Free Software Foundation.
- */
+*/
package eu.svjatoslav.sixth.e3d.examples;
package eu.svjatoslav.sixth.e3d.examples;
@@
-22,8
+20,7
@@
public class GraphDemo {
private static final double scale = 50d;
private static final double scale = 50d;
- private static Graph getCosineGraph(final Point3D location)
- throws IOException {
+ private static Graph getCosineGraph(final Point3D location) {
final List<Point2D> data = new ArrayList<>();
for (double x = 0; x < 20; x += 0.25) {
final double y = Math.cos(x);
final List<Point2D> data = new ArrayList<>();
for (double x = 0; x < 20; x += 0.25) {
final double y = Math.cos(x);
@@
-35,8
+32,7
@@
public class GraphDemo {
return new Graph(scale, data, "Cosine", location);
}
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<Point2D> data = new ArrayList<>();
for (double x = 0; x < 20; x += 0.25) {
final double y = Math.sin(Math.tan(x));
final List<Point2D> data = new ArrayList<>();
for (double x = 0; x < 20; x += 0.25) {
final double y = Math.sin(Math.tan(x));
@@
-60,8
+56,7
@@
public class GraphDemo {
return new Graph(scale, data, "y = ( (10-x)^2 ) / 30", location);
}
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<Point2D> data = new ArrayList<>();
for (double x = 0; x < 20; x += 0.25) {
final double y = Math.sin(x / 2) + Math.sin(x / 1.26);
final List<Point2D> data = new ArrayList<>();
for (double x = 0; x < 20; x += 0.25) {
final double y = Math.sin(x / 2) + Math.sin(x / 1.26);
@@
-73,8
+68,7
@@
public class GraphDemo {
return new Graph(scale, data, "y = sin(x/2) + sin(x/1.26)", location);
}
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<Point2D> data = new ArrayList<>();
for (double x = 0; x < 20; x += 0.25) {
final double y = Math.sin(x);
final List<Point2D> data = new ArrayList<>();
for (double x = 0; x < 20; x += 0.25) {
final double y = Math.sin(x);
@@
-86,8
+80,7
@@
public class GraphDemo {
return new Graph(scale, data, "Sine", location);
}
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<Point2D> data = new ArrayList<>();
for (double x = 0; x < 20; x += 0.25) {
double y = Math.tan(x);
final List<Point2D> data = new ArrayList<>();
for (double x = 0; x < 20; x += 0.25) {
double y = Math.tan(x);