liba 0.1.15

An algorithm library based on C/C++
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[test]
fn trajbell() {
    let x = 0.5;
    {
        let mut traj = liba::trajbell::new();
        std::print!("{} ", traj.gen(3.0, 2.0, 3.0, 0.0, 10.0, 0.0, 0.0));
        std::println!(
            "[{}, {}, {}, {}]",
            traj.pos(x),
            traj.vel(x),
            traj.acc(x),
            traj.jer(x)
        );
    }
}