nbody
Version:
Configure, simulate and visualize n-body interactions
22 lines (21 loc) • 560 B
TypeScript
import type { CelestialBody } from './CelestialBody';
/**
* Represents a Universe's state snapshot.
* @category Building blocks
*/
export declare class State {
/**
* Array of celestial bodies that make up this state of the Universe.
*/
readonly bodies: CelestialBody[];
/**
* Create a new State with the given celestial bodies.
* @param bodies array of celestial bodies.
*/
constructor(bodies: CelestialBody[]);
/**
* Deep copy this state
* @returns a new State instance.
*/
clone(): State;
}