A collection of JavaScript mathemtatical helper functions and constant values.
Complete API documentation is available here.
<script src="extended-math.js"></script>
<script type="text/javascript">
extendedMath.clamp(5, 0, 2); // => 2
</script>
const extendedMath = require("extended-math");
extendedMath.normalize(1, 0, 2); // => 0.5
To install this module:
npm install extended-math
To build the distribution files for this module:
npm run build
To run the unit test suite for this module:
npm run test
npm run docs