Interface System

Interface defining the basic functionality of a dust system, composed of a number of particles

interface System {
    state: Readonly<SystemState>;
    time: number;
    runToTime(time: number): void;
    setStateInitial(): void;
}

Hierarchy (View Summary)

Implemented by

Properties

state: Readonly<SystemState>

The current state of each particle in the system

time: number

The current time in the system

Methods

  • Runs the system from its current time to the given time, causing its state to be updated

    Parameters

    • time: number

      The time to run to

    Returns void

  • Sets or resets the system to its initial state for all particles.

    Returns void