cs567.particles
Class SpringForce2Particle

java.lang.Object
  extended by cs567.particles.SpringForce2Particle
All Implemented Interfaces:
Force

public class SpringForce2Particle
extends java.lang.Object
implements Force

Spring force between two particles.


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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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