|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensourcephysics.sip.ch05.Scatter
public class Scatter
Scatter models particle scattering using a central force law.
Constructor Summary | |
---|---|
Scatter()
Constructs Scatter and sets the ODE solver step size. |
Method Summary | |
---|---|
void |
getRate(double[] state,
double[] rate)
Gets the rate array using the given state, {x,vx,y,vy,t}. |
double[] |
getState()
Gets the state array, {x,vx,y,vy,t}. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Scatter()
Method Detail |
---|
public void getRate(double[] state, double[] rate)
getRate
in interface ODE
state
- the staterate
- the ratepublic double[] getState()
getState
in interface ODE
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |