-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConjunto.java
More file actions
25 lines (22 loc) · 720 Bytes
/
Copy pathConjunto.java
File metadata and controls
25 lines (22 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import java.util.ArrayList;
public class Conjunto {
private Sphere s;
private ArrayList<Point3D>points = new ArrayList<>();
public Conjunto(float radius,float xCenter,float yCenter,float zCenter,float increment,String name) {
System.out.println("--New sphere: "+name+": CenterPoint (Cx,Cy,Cz): ( "+xCenter+" , "+yCenter+" , "+zCenter+" ) Radius: "+radius+" (x-x0)^2+(y-y0)^2+(z-z0)^2=R^2");
s= new Sphere(radius, xCenter, yCenter, zCenter);
points=s.getAllPoints(increment);
}
public Sphere getS() {
return s;
}
public ArrayList<Point3D> getPoints() {
return points;
}
public void setS(Sphere s) {
this.s = s;
}
public void setPoints(ArrayList<Point3D> points) {
this.points = points;
}
}