get displacements infomation through initial displacement, velocity, acceleration and time. this information can be used to paint chart, movement trace and so on.
- base usage:
const euler = require('./index.js');
const d = [0, 0];
const v = [10, 10];
const a = [0, 0];
const results = euler(d, v, a, 10);
- you can provide greater steps(default 100) param to archieve more prrecise data:
const results = euler(d, v, a, 10, { steps: 120 });