protected static class TwoBodyForce.ForcePair
extends java.lang.Object
updateBoth(Vector3D, Vector3D) or updateEqualAndOpposite(Vector3D)
or use the getters and manipulate the Vector3Ds directly.| Modifier and Type | Method and Description |
|---|---|
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.
|
protected Vector3D forceOnOneEnd()
protected Vector3D forceOnTheOtherEnd()
protected TwoBodyForce.ForcePair updateEqualAndOpposite(Vector3D forceOnOneEnd) throws java.lang.NullPointerException, java.lang.IllegalStateException
forceOnOneEnd - the force on oneEndjava.lang.NullPointerException - if forceOnOneEnd is nulljava.lang.IllegalStateExceptionprotected TwoBodyForce.ForcePair updateBoth(Vector3D forceOnOneEnd, Vector3D forceOnTheOtherEnd) throws java.lang.NullPointerException
forceOnOneEnd - the force on oneEnd ParticleforceOnTheOtherEnd - the force on theOtherEnd Particlejava.lang.NullPointerException - if either argument is null