Package | Description |
---|---|
org.gicentre.utils.network.traer.physics |
Physics library for use with Processing.
|
Modifier and Type | Class and Description |
---|---|
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 ). |
Modifier and Type | Method and Description |
---|---|
TwoBodyForce |
TwoBodyForce.apply()
|
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.
|