-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathGraviton.java
More file actions
50 lines (42 loc) · 940 Bytes
/
Copy pathGraviton.java
File metadata and controls
50 lines (42 loc) · 940 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// sdurant12
// 11/14/2012
package particlesystem_v5;
public class Graviton {
private float xPos = 0, yPos = 0, xPull = 0, yPull = 0;
public Graviton(){
this.xPos = 0;
this.yPos = 0;
this.xPull = 0;
this.yPull = 0;
}
public void setGraviton(float xPos, float yPos, float xPull, float yPull){
this.xPos = xPos;
this.yPos = yPos;
this.xPull = xPull;
this.yPull = yPull;
}
public float getxPos(){
return xPos;
}
public float getyPos(){
return yPos;
}
public float getxPull(){
return xPull;
}
public float getyPull(){
return yPull;
}
public void setxPos(float xp){
xPos = xp;
}
public void setyPos(float yp){
yPos = yp;
}
public void setxPull(float xp){
xPull = xp;
}
public void setyPull(float yp){
yPull = yp;
}
}