export { default as type } from './type.mjs';

const { PI: PI$2, min: min$3, max: max$3 } = Math;

const rnd2 = (a) => Math.round(a * 100) / 100;
const rnd3 = (a) => Math.round(a * 100) / 100;

const TWOPI = PI$2 * 2;
const PITHIRD = PI$2 / 3;
const DEG2RAD = PI$2 / 180;
const RAD2DEG = 180 / PI$2;

/**
 * Reverse the first three elements of an array
 *
 * @param {any[]} arr
 * @returns {any[]}
 */
function reverse3(arr) {
    return [...arr.slice(0, 3).reverse(), ...arr.slice(3)];
}

export { DEG2RAD, PI$2 as PI, PITHIRD, RAD2DEG, TWOPI, max$3 as max, min$3 as min, reverse3, rnd2, rnd3 };
//# sourceMappingURL=index.mjs.map
