Interface SimulateFunction

Represents a function object used for simulating the Universe. Should encapsulate the numerical integration method and other necessary simulation logic. Can use an external force calculation function object - see Force.

interface SimulateFunction {
    simulate(deltaT, currState, prevState): State;
}

Implemented by

Methods

Methods

  • Simulate a step in the Universe by using the previous and/or current state and a time step.

    Parameters

    • deltaT: number

      time step.

    • currState: State

      current state of the Universe.

    • prevState: State

      previous state of the Universe.

    Returns State

    the next state of the Universe.

Generated using TypeDoc