Files
Superalgos/Balls.js
T
2018-02-14 13:00:19 +01:00

15 lines
330 B
JavaScript

function updateBallsTargets() {
/* Whenever there is a change in the currentZoom level, all targets needs to be recalculated in order to fit in the new plotArea. */
for (var i = 0; i < balls.length; i++) {
balls[i].updateMass();
balls[i].updateRadius();
balls[i].updatePosition();
}
}