Class RungeKutta4Sim

Represents a simulation function object that uses the Runge-Kutta 4 integration method to simulate the motion of bodies.

Implements

Constructors

Properties

Methods

Constructors

  • Create a new RungeKutta4Sim with the provided weights for average force calculator, which is invoked on every simulation step.

    Parameters

    • force: Force = ...

      force calculator.

    • weights: number[] = ...

      weights for weighted average.

    Returns RungeKutta4Sim

Properties

force: Force

Force object to calculate forces on bodies in the Universe.

weights: number[]

Weights for weighted average.

Methods

Generated using TypeDoc