|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use TwoBodyForce | |
---|---|
org.gicentre.utils.network.traer.physics | Physics library for use with Processing. |
Uses of TwoBodyForce in org.gicentre.utils.network.traer.physics |
---|
Subclasses of TwoBodyForce in org.gicentre.utils.network.traer.physics | |
---|---|
class |
Attraction
This class implements TwoBodyForce to represent an inverse-square law force with a force constant and minimal distance. |
class |
Spring
Class for representing a physical spring by extending TwoBodyForce to calculate
the force with a spring constant (Spring.ks ), damping factor (Spring.d ), and an
ideal length (Spring.l ). |
Methods in org.gicentre.utils.network.traer.physics that return TwoBodyForce | |
---|---|
TwoBodyForce |
TwoBodyForce.apply()
Applies this Force to oneEnd and theOtherEnd , which modifies their
Particle.force values. |
protected TwoBodyForce |
TwoBodyForce.setOneEnd(Particle p)
Sets oneEnd to the give particle. |
protected TwoBodyForce |
TwoBodyForce.setTheOtherEnd(Particle p)
Sets theOtherEnd to the give particle. |
TwoBodyForce |
TwoBodyForce.turnOff()
Turns this force off. |
TwoBodyForce |
TwoBodyForce.turnOn()
Turns this force on. |
TwoBodyForce |
TwoBodyForce.turnOn(boolean isOn)
Turns this force on or off. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |