Skip to content

A collection of mathematical helper functions and constant values.

Notifications You must be signed in to change notification settings

nitro404/extended-math

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extended Math

NPM version Coverage Status Known Vulnerabilities Downloads Install Size Contributors Pull Requests Welcome

A collection of JavaScript mathemtatical helper functions and constant values.

Documentation

Complete API documentation is available here.

Web Usage

<script src="extended-math.js"></script>

<script type="text/javascript">
	extendedMath.clamp(5, 0, 2); // => 2 
</script>

Node.js Usage

const extendedMath = require("extended-math");

extendedMath.normalize(1, 0, 2); // => 0.5

Installation

To install this module:

npm install extended-math

Building

To build the distribution files for this module:

npm run build

Running Unit Tests

To run the unit test suite for this module:

npm run test

Generating Documentation

npm run docs

About

A collection of mathematical helper functions and constant values.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published