|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectJSci.physics.Spring
| Constructor Summary | |
Spring(double coeff)
Constructs a mechanical spring. |
|
| Method Summary | |
JSci.physics.Spring.Force |
createForce(AbstractClassicalParticle p)
|
double |
energy(AbstractClassicalParticle p)
Returns the potential energy of a particle attached to this spring. |
AbstractDoubleVector |
getPosition()
|
void |
setPosition(AbstractDoubleVector pos)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Spring(double coeff)
coeff - the spring constant.| Method Detail |
public void setPosition(AbstractDoubleVector pos)
public AbstractDoubleVector getPosition()
public double energy(AbstractClassicalParticle p)
public JSci.physics.Spring.Force createForce(AbstractClassicalParticle p)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||