Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeadlockCode/n-body
/ Simulation
Class
Simulation
src/simulation.rs:24–26 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
22
const MIN: Real = 0.0001;
23
24
pub struct Simulation {
25
pub bodies: Vec<Body>,
26
}
27
28
impl Simulation {
29
pub fn new(seed: u64) -> Self {
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected