11 lines
300 B
Rust
Raw Normal View History

2025-05-04 00:02:35 +02:00
use solar_engine::Body;
2025-05-03 23:41:57 +02:00
fn main() {
println!("Hello, world!");
2025-05-04 00:02:35 +02:00
let earth = Body::new("Earth", 5.972e24, [1.496e11, 0.0], [0.0, 0.0]);
println!("Created body: {:?}", earth);
let sun = Body::new("Sun", 1.989e30, [0.0, 0.0], [0.0, 0.0]);
println!("Created body: {:?}", sun);
2025-05-03 23:41:57 +02:00
}