"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.numberClose = numberClose;
exports.mix = mix;
exports.clamp = clamp;
const constants_1 = require("./constants");
function numberClose(x, y, epsilon = constants_1.EPSILON) {
    return Math.abs(x - y) < epsilon;
}
function mix(a, b, t) {
    return a + (b - a) * t;
}
function clamp(value, min, max) {
    return value < min ? min : value > max ? max : value;
}
