cs567.particles
Class SpringForce1Particle
java.lang.Object
cs567.particles.SpringForce1Particle
- All Implemented Interfaces:
- Force
public class SpringForce1Particle
- extends java.lang.Object
- implements Force
Spring force between one particle and a proxy point.
Method Summary |
void |
applyForce()
Causes force to be applied to affected particles. |
void |
display(javax.media.opengl.GL gl)
Display any instructive force information, e.g., connecting spring. |
ParticleSystem |
getParticleSystem()
Reference to the ParticleSystem this force affects. |
void |
updatePoint(javax.vecmath.Point2d x)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
p1
Particle p1
x2
javax.vecmath.Point2d x2
PS
ParticleSystem PS
SpringForce1Particle
SpringForce1Particle(Particle p1,
javax.vecmath.Point2d x2,
ParticleSystem PS)
updatePoint
public void updatePoint(javax.vecmath.Point2d x)
applyForce
public void applyForce()
- Description copied from interface:
Force
- Causes force to be applied to affected particles.
- Specified by:
applyForce
in interface Force
display
public void display(javax.media.opengl.GL gl)
- Description copied from interface:
Force
- Display any instructive force information, e.g., connecting spring.
- Specified by:
display
in interface Force
getParticleSystem
public ParticleSystem getParticleSystem()
- Description copied from interface:
Force
- Reference to the ParticleSystem this force affects.
- Specified by:
getParticleSystem
in interface Force