repo.or.cz
/
liba.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
add: class version,pid,pid_neuron in QuickJS
[liba.git]
/
quickjs
/
test
/
polytrack5.js
blob
1563ae8d99377d5835b320e4c7190c385e4fd647
1
import * as a from "liba.so";
2
var polytrack5 = new a.polytrack5(0, 1, 0, 1)
3
polytrack5.gen(0, 10, 0, 10, 0, 0)
4
for (var i = 0; i < 10; i += 0.1) {
5
console.log(i, polytrack5.pos(i), polytrack5.vel(i), polytrack5.acc(i))
6
}