Class Universe

A Universe object that contains previous and current state of the universe, a simulation function, frame of reference transformations and other necessary data.

Constructors

Properties

color: string | string[]

Color of the bodies in the Universe. A single color applied to all bodies or an array of colors applied to each body respectively. Incase of array, length should match the number of bodies in the state.

currState: State
label: string

Label of the Universe.

prevState: State
radiusScale: number

Scale the radius of the bodies in the Universe. Default is 1.

Simulation function used to simulate the Universe.

transformations: Transformation[]

Array of transformations to be applied to the Universe's state after simulation and before visualization.

Methods

Generated using TypeDoc