"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.animateSimulateTick = void 0;
const ANIMATION_C_1 = require("./ANIMATION_C");
const animateSimulateTick = (n, _n, ff, tick) => {
    let ended = true;
    for (const [prop, treshold] of ff) {
        const dp = _n[prop] - n[prop];
        if (Math.abs(dp) > treshold) {
            ended = false;
            n[prop] += dp / ANIMATION_C_1.ANIMATION_C;
        }
        else {
            n[prop] = _n[prop];
        }
    }
    tick(n);
    return ended;
};
exports.animateSimulateTick = animateSimulateTick;
//# sourceMappingURL=animateSimulateTick.js.map