Package test
Class Particle
java.lang.Object
test.Particle
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyAcceleration(float ax, float ay) voidapplyForce(float a, float theta) floatgetR()floatgetX()floatgetY()voidupdate(processing.core.PApplet app)
-
Field Details
-
x
private float x -
y
private float y -
r
private float r -
vx
private float vx -
vy
private float vy -
ax
private float ax -
ay
private float ay -
color
int[] color
-
-
Constructor Details
-
Particle
public Particle(float x, float y, float r) -
Particle
public Particle(float x, float y, float r, float vx, float vy) -
Particle
public Particle(float x, float y, float r, float vx, float vy, float ax, float ay) -
Particle
public Particle(float x, float y, float r, float vx, float vy, float ax, float ay, int[] color)
-
-
Method Details
-
update
public void update(processing.core.PApplet app) -
applyForce
public void applyForce(float a, float theta) -
applyAcceleration
public void applyAcceleration(float ax, float ay) -
getX
public float getX() -
getY
public float getY() -
getR
public float getR()
-