|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.jinx.physics.spring.Spring net.jinx.physics.spring.DampedSpring net.jinx.physics.spring.GeneralSpring
public class GeneralSpring
Constructor Summary | |
---|---|
GeneralSpring(float k,
float b,
float d,
PhysicalObject p1,
PhysicalObject p2)
|
|
GeneralSpring(float k,
float b,
float d,
PhysicalObject p1,
Vector p2)
|
Method Summary | |
---|---|
protected void |
applyForce(PhysicalObject obj)
|
protected float |
getDesiredDistance()
|
Methods inherited from class net.jinx.physics.spring.DampedSpring |
---|
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 |
---|
public GeneralSpring(float k, float b, float d, PhysicalObject p1, PhysicalObject p2)
public GeneralSpring(float k, float b, float d, PhysicalObject p1, Vector p2)
Method Detail |
---|
protected float getDesiredDistance()
protected void applyForce(PhysicalObject obj)
applyForce
in class DampedSpring
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |