bima-rs 0.2.0

N-body simulation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::vec3::Vec3;

#[derive(Clone, Debug, Default)]
pub struct Line {
    pub t: f64,
    pub r: Vec3,
    pub v: Vec3,
    pub a: Option<Vec3>,
}

impl Line {
    pub fn new(t: f64, r: Vec3, v: Vec3, a: Option<Vec3>) -> Self {
        Line { t, r, v, a }
    }
}