UNPKG

ziko

Version:

A versatile JavaScript library offering a rich set of Hyperscript Based UI components, advanced mathematical utilities, interactivity ,animations, client side routing and more ...

20 lines (17 loc) 628 B
// /** @module Math */ // /** // * Converts degrees to radians. // * @param {...number} deg - Degrees to convert. // * @returns {number|number[]} Returns an array of radians corresponding to the input degrees. // */ // const deg2rad = (...deg) => mapfun(x => x * Math.PI / 180, ...deg); // /** // * Converts radians to degrees. // * @param {...number} rad - Radians to convert. // * @returns {number|number[]} Returns an array of degrees corresponding to the input radians. // */ // const rad2deg = (...rad) => mapfun(x => x / Math.PI * 180, ...rad); // export { // deg2rad, // rad2deg // }