pusher.math provides math functions for graphics code and general use
Want to see pretty graphs? Log in now!
npm install pusher.math
|1||downloads in the last week|
|4||downloads in the last month|
|Version||0.1.0 last updated a year ago|
|Keywords||3d, math, perlin, noise|
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 run
npm install --dev prior to running the benchmarks.
Licensed under the MIT license.