|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gicentre.utils.network.traer.physics.TwoBodyForce.ForcePair
protected static class TwoBodyForce.ForcePair
Class that wraps Vector3D forces to apply to the two ends of this TwoBodyForce.
For the especially memory conscious, the ForcePair fields can be manipulated directly;
use the updateBoth(Vector3D, Vector3D)
or updateEqualAndOpposite(Vector3D)
or use the getters and manipulate the Vector3Ds directly.
Method Summary | |
---|---|
protected Vector3D |
forceOnOneEnd()
Reports the force at oneEnd. |
protected Vector3D |
forceOnTheOtherEnd()
Reports the force at theOtherEnd. |
protected TwoBodyForce.ForcePair |
updateBoth(Vector3D forceOnOneEnd,
Vector3D forceOnTheOtherEnd)
Updates the force for both ends according to the parameters. |
protected TwoBodyForce.ForcePair |
updateEqualAndOpposite(Vector3D forceOnOneEnd)
Sets the force at oneEnd according to forceOnOneEnd argument, and the force on theOtherEnd as equal and opposite. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
protected Vector3D forceOnOneEnd()
protected Vector3D forceOnTheOtherEnd()
protected TwoBodyForce.ForcePair updateEqualAndOpposite(Vector3D forceOnOneEnd) throws java.lang.NullPointerException, java.lang.IllegalStateException
forceOnOneEnd
- the force on oneEnd
java.lang.NullPointerException
- if forceOnOneEnd is null
java.lang.IllegalStateException
protected TwoBodyForce.ForcePair updateBoth(Vector3D forceOnOneEnd, Vector3D forceOnTheOtherEnd) throws java.lang.NullPointerException
forceOnOneEnd
- the force on oneEnd ParticleforceOnTheOtherEnd
- the force on theOtherEnd Particle
java.lang.NullPointerException
- if either argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |