repo.or.cz
/
liba.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
remove `#!/usr/bin/env sh`
[liba.git]
/
tests
/
trajbell.rs
blob
90151e00baaa0613e089a86b8a985a983d9fbcf3
1
#[test]
2
fn trajbell() {
3
let x = 0.5;
4
{
5
let mut traj = liba::trajbell::new();
6
std::print!("{} ", traj.gen(3.0, 2.0, 3.0, 0.0, 10.0, 0.0, 0.0));
7
std::println!(
8
"[{}, {}, {}, {}]",
9
traj.pos(x),
10
traj.vel(x),
11
traj.acc(x),
12
traj.jer(x)
13
);
14
}
15
}