pusher.math provides math functions for graphics code and general use
A combine module providing some generic mathematical functions, specifically biased towards graphics and visualization. Can be used as both a server and client-side library.
The server-side implementation swaps in native C++ implementations in some cases for improved performance.
- Vector-3 library
- Perlin noise (3D)
- Ranged random numbers
- Linear interpolation
build sub-directory contains client-side versions of the library. The methods are accessible under the global namespace variable
pusher.math within the browser.
To build a client-side file from the latest code, run:
to generate a client-side compatible version of the script. The file will be written to
examples sub-directory of the module.
Unit testing uses
nodeunit. Be sure to run
npm install --dev prior to running the unit tests.
The benchmarks use ```benchmarkjs
. Be sure to runnpm install --dev`` prior to running the benchmarks.
Licensed under the MIT license.