Package | Description |
---|---|
org.gicentre.utils.network.traer.physics |
Physics library for use with Processing.
|
Modifier and Type | Method and Description |
---|---|
protected static TwoBodyForce.ForcePair |
TwoBodyForce.equalAndOpposite(Vector3D forceOnOneEnd)
Creates a force pair for when the forces to be applied are equal and opposite.
|
protected abstract TwoBodyForce.ForcePair |
TwoBodyForce.forcePair()
Should apply the force to the pair of particles.
|
TwoBodyForce.ForcePair |
Spring.forcePair()
Calculates the spring forces on each of the particles at either end of the spring.
|
protected TwoBodyForce.ForcePair |
Attraction.forcePair()
Implements the Attraction force calculation.
|
protected static TwoBodyForce.ForcePair |
TwoBodyForce.specifyBoth(Vector3D forceOnOneEnd,
Vector3D forceOnTheOtherEnd)
Creates a
TwoBodyForce.ForcePair from two not necessarily equal and opposite forces. |
protected TwoBodyForce.ForcePair |
TwoBodyForce.ForcePair.updateBoth(Vector3D forceOnOneEnd,
Vector3D forceOnTheOtherEnd)
Updates the force for both ends according to the parameters.
|
protected TwoBodyForce.ForcePair |
TwoBodyForce.ForcePair.updateEqualAndOpposite(Vector3D forceOnOneEnd)
Sets the force at oneEnd according to forceOnOneEnd argument, and the force on theOtherEnd as equal and opposite.
|