private static final double WAVE_FREQUENCY = 50d;
private static final double WAVE_AMPLITUDE = 50d;
private static final Color SQUARE_PLATE_COLOR = new Color("88F7");
+ private static final double GRAPH_SCALE = 50d;
private static void makeSquarePlate(final ShapeCollection shapeCollection,
final double y, final double x, final double z) {
}
}
- private static final double scale = 50d;
-
private static Graph getCosineGraph(final Point3D location) {
final List<Point2D> data = new ArrayList<>();
for (double x = 0; x < 20; x += 0.25) {
data.add(p);
}
- return new Graph(scale, data, "Cosine", location);
+ return new Graph(GRAPH_SCALE, data, "Cosine", location);
}
private static Graph getFormula1Graph(final Point3D location) {
data.add(p);
}
- return new Graph(scale, data, "y = sin(tan(x))", location);
+ return new Graph(GRAPH_SCALE, data, "y = sin(tan(x))", location);
}
private static Graph getFormula2Graph(final Point3D location) {
data.add(p);
}
- return new Graph(scale, data, "y = ( (10-x)^2 ) / 30", location);
+ return new Graph(GRAPH_SCALE, data, "y = ( (10-x)^2 ) / 30", location);
}
private static Graph getFormula3Graph(final Point3D location) {
data.add(p);
}
- return new Graph(scale, data, "y = sin(x/2) + sin(x/1.26)", location);
+ return new Graph(GRAPH_SCALE, data, "y = sin(x/2) + sin(x/1.26)", location);
}
private static Graph getSineGraph(final Point3D location) {
data.add(p);
}
- return new Graph(scale, data, "Sine", location);
+ return new Graph(GRAPH_SCALE, data, "Sine", location);
}
private static Graph getTangentGraph(final Point3D location) {
data.add(p);
}
- return new Graph(scale, data, "Tangent", location);
+ return new Graph(GRAPH_SCALE, data, "Tangent", location);
}
public static void main(final String[] args) {