net.jinx.physics.spring
Class DampedSpring

java.lang.Object
  extended by net.jinx.physics.spring.Spring
      extended by net.jinx.physics.spring.DampedSpring
Direct Known Subclasses:
GeneralSpring

public class DampedSpring
extends Spring


Constructor Summary
DampedSpring(float k, float b, PhysicalObject p1, PhysicalObject p2)
           
DampedSpring(float k, float b, PhysicalObject p1, Vector p2)
           
 
Method Summary
protected  void applyForce(PhysicalObject obj)
           
protected  float getDampingConstant()
           
 
Methods inherited from class net.jinx.physics.spring.Spring
destroy, getNodeOne, getNodeTwo, getPositionOne, getPositionTwo, getSpringConstant, getVelocityOne, getVelocityTwo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DampedSpring

public DampedSpring(float k,
                    float b,
                    PhysicalObject p1,
                    PhysicalObject p2)

DampedSpring

public DampedSpring(float k,
                    float b,
                    PhysicalObject p1,
                    Vector p2)
Method Detail

getDampingConstant

protected float getDampingConstant()

applyForce

protected void applyForce(PhysicalObject obj)
Overrides:
applyForce in class Spring