(prev, cur, dest, damping, stiffness)
| 87554 | return spring + damper + velocity + cur; |
| 87555 | } |
| 87556 | function updateSpring(prev, cur, dest, damping, stiffness) { |
| 87557 | if (Array.isArray(dest)) { |
| 87558 | var next = []; |
| 87559 | for(var i = 0; i < dest.length; i++)next[i] = updateSpringElement(prev[i], cur[i], dest[i], damping, stiffness); |
| 87560 | return next; |
| 87561 | } |
| 87562 | return updateSpringElement(prev, cur, dest, damping, stiffness); |
| 87563 | } |
| 87564 | function distance(value1, value2) { |
| 87565 | if (Array.isArray(value1)) { |
| 87566 | var distanceSquare = 0; |
no test coverage detected