-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathParticle.java
More file actions
62 lines (56 loc) · 1.14 KB
/
Copy pathParticle.java
File metadata and controls
62 lines (56 loc) · 1.14 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
// sdurant12
// 11/14/2012
package particlesystem_v5;
public class Particle {
private float xPos, yPos, xVel, yVel;
private float pxVel, pyVel;
private int age = 0;
public void setParticle(float xPos, float yPos, float xVel, float yVel){
this.xPos = xPos;
this.yPos = yPos;
this.xVel = xVel;
this.yVel = yVel;
}
public float getxPos(){
return xPos;
}
public float getyPos(){
return yPos;
}
public float getxVel(){
return xVel;
}
public float getyVel(){
return yVel;
}
public float getpxVel(){
return pxVel;
}
public float getpyVel(){
return pyVel;
}
public int getAge(){
return age;
}
public void setxPos(float xp){
xPos = xp;
}
public void setyPos(float yp){
yPos = yp;
}
public void setxVel(float xv){
xVel = xv;
}
public void setyVel(float yv){
yVel = yv;
}
public void setpxVel(float pxv){
pxVel = pxv;
}
public void setpyVel(float pyv){
pyVel = pyv;
}
public void setAge(int a){
age = a;
}
}