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
rename symbol q to symbol p
[liba.git]
/
javascript
/
test
/
trajpoly5.js
blob
273e56fc7ae5c3e8298718e41bffb9e0cc9497b1
1
#!/usr/bin/env node
2
var liba = require("../liba")
3
function do_leak_check() {
4
for (const arg of arguments) {
5
arg.delete()
6
}
7
if (liba.do_leak_check) {
8
liba.do_leak_check()
9
}
10
}
11
var ctx = new liba.trajpoly5(1, 0, 1, 0, 1, 0, 1)
12
console.log(ctx.p)
13
console.log(ctx.v)
14
console.log(ctx.a)
15
console.log(ctx.pos(0.5), ctx.vel(0.5), ctx.acc(0.5))
16
do_leak_check(ctx)