export const EPSILON=0.000001;export function fequal(a,b,epsilon=EPSILON){return Math.abs(a-b)max?max:x}export function lerp(a,b,t){return a*(1-t)+b*t} //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJFUFNJTE9OIiwiZmVxdWFsIiwiYSIsImIiLCJlcHNpbG9uIiwiTWF0aCIsImFicyIsImNvcHlzaWduIiwic2lnbiIsImNsYW1wIiwieCIsIm1pbiIsIm1heCIsImxlcnAiLCJ0Il0sInNvdXJjZXMiOlsiLi4vanMvc2NhbGFyLnRzIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKiBUaGUgZmxvYXQgZXBzaWxvbi4gKi9cbmV4cG9ydCBjb25zdCBFUFNJTE9OOiBudW1iZXIgPSAwLjAwMDAwMTtcblxuLyoqIENoZWNrIGlmIDIgZmxvYXRzIGFyZSBlcXVhbCB3aXRoaW4gYW4gZXBzaWxvbi4gKi9cbmV4cG9ydCBmdW5jdGlvbiBmZXF1YWwoYTogbnVtYmVyLCBiOiBudW1iZXIsIGVwc2lsb246IG51bWJlciA9IEVQU0lMT04pOiBib29sZWFuIHtcbiAgcmV0dXJuIE1hdGguYWJzKGEgLSBiKSA8IGVwc2lsb247XG59XG5cbi8qKiBDb21wb3NlcyBhIGZsb2F0IGZyb20gdGhlIG1hZ25pdHVkZSBvZiBhIGFuZCB0aGUgc2lnbiBvZiBiLCBpLmUuIGNvcHlzaWduKGEsIGIpID0gc2duKGIpfGF8LiAqL1xuZXhwb3J0IGZ1bmN0aW9uIGNvcHlzaWduKGE6IG51bWJlciwgYjogbnVtYmVyKTogbnVtYmVyIHtcbiAgcmV0dXJuIChNYXRoLnNpZ24oYikgKiBNYXRoLmFicyhhKSkgYXMgbnVtYmVyO1xufVxuXG4vKiogQ2xhbXAgYSBmbG9hdCB0byBbbWluLCBtYXhdLiAqL1xuZXhwb3J0IGZ1bmN0aW9uIGNsYW1wKHg6IG51bWJlciwgbWluOiBudW1iZXIsIG1he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