Package | Description |
---|---|
org.gicentre.utils.network.traer.physics |
Physics library for use with Processing.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractForce
A skeletal implementation of
Force covering the methods concerned with the on/off
state. |
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 ). |
class |
TargetedForce
A
Force that has its subject Particle s already specified, and hence does
not support the apply(Particle) method. |
class |
TwoBodyForce
TwoBodyForce is
Force between two specified Particle s, which extends
TargetedForce and simplifies implementation of custom Forces. |
class |
UniversalForce
|
Modifier and Type | Method and Description |
---|---|
Force |
Force.apply()
Should apply this Force.
|
Force |
Force.turnOff()
Should turn the Force off.
|
Force |
Force.turnOn()
Should turn the Force on.
|
Force |
Force.turnOn(boolean isOn)
Should set the Force to the argument
isOn . |