{"_id":"unlerp","_rev":"6-93fdea12233fd3a9880018513b3c0707","name":"unlerp","description":"opposite of lerp; get normalized range between two bounds","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"unlerp","version":"1.0.0","description":"opposite of lerp; give range between two bounds","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com"},"dependencies":{},"devDependencies":{"tape":"~2.13.2"},"scripts":{"test":"node test.js"},"testling":{"files":"test.js","browsers":["ie/6..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6","android-browser/latest"]},"repository":{"type":"git","url":"git://github.com/mattdesl/unlerp.git"},"homepage":"https://github.com/mattdesl/unlerp","bugs":{"url":"https://github.com/mattdesl/unlerp/issues"},"keywords":["gl","glsl","math","lerp","linear","interpolation","unlerp","norm","normalize","normalise","normalized","range","vector"],"gitHead":"31285549d71f311bdbb41b2ccf3fdcedfc699d4b","_id":"unlerp@1.0.0","_shasum":"22b259c734f776ea4d8c843f78a433d4d882d115","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"22b259c734f776ea4d8c843f78a433d4d882d115","tarball":"https://registry.npmjs.org/unlerp/-/unlerp-1.0.0.tgz","integrity":"sha512-cz4s644XtXVuxLwelHjoH+qamEt4JEscWCu1Ymib3TXnLDXsMWGnNR18z5K8Wu/wLu0D3kGU4gXZsaAdQv/oxQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICDbck4KMwaGfPGysmyWGOwh3v/TZlNfFfMJsUFKLUeSAiEA1w57mNAWeGGU5ZM0CLaSxinn1LnSleuvh3/vgHn6S90="}]}},"1.0.1":{"name":"unlerp","version":"1.0.1","description":"opposite of lerp; get normalized range between two bounds","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com"},"dependencies":{},"devDependencies":{"tape":"~2.13.2"},"scripts":{"test":"node test.js"},"testling":{"files":"test.js","browsers":["ie/6..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6","android-browser/latest"]},"repository":{"type":"git","url":"git://github.com/mattdesl/unlerp.git"},"homepage":"https://github.com/mattdesl/unlerp","bugs":{"url":"https://github.com/mattdesl/unlerp/issues"},"keywords":["gl","glsl","math","lerp","linear","interpolation","unlerp","norm","normalize","normalise","normalized","range","vector"],"gitHead":"c01c1d476e5d6bd84e159d73a09b8954398b2268","_id":"unlerp@1.0.1","_shasum":"e28351e3b0b77f56398027aef8b2e4f14bd376fa","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"e28351e3b0b77f56398027aef8b2e4f14bd376fa","tarball":"https://registry.npmjs.org/unlerp/-/unlerp-1.0.1.tgz","integrity":"sha512-KYAvSHj5Jg0/OlZh25r/xVgzedK657QqCFxlXu7XvXUd6ODQyTRw/pDMoC+tdjdeviU29+b3UXYsl8zRuYecTQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIALHjfUTuE2rRqLuCPCXN8rJNbA+IhqfsGlImQwclAnJAiEA52FGl35Vcgpb86JPb6xbuLOSpifjvroJg1UgAXOaXyI="}]}}},"readme":"[![browser support](https://ci.testling.com/mattdesl/unlerp.png)](https://ci.testling.com/mattdesl/unlerp)\n\n# unlerp\n\n[![frozen](http://badges.github.io/stability-badges/dist/frozen.svg)](http://github.com/badges/stability-badges)\n\nOpposite of [lerp](https://www.npmjs.org/package/lerp); gets the range between a lower and upper bound. \n\n```js\nvar range = require('unlerp')\n\n//result is typically between 0.0 and 1.0\nvar result = range(0, 50, 25) //=> 0.5\n\n//if you want to saturate to 0.0 - 1.0\nresult = require('clamp')(result, 0, 1)\n```\n\nThe result is not clamped. \n\n## Usage\n\n[![NPM](https://nodei.co/npm/unlerp.png)](https://nodei.co/npm/unlerp/)\n\n### ```range(min, max, value)```\n\nProduces the normalized range of `value` between two bounds. Equivalent to:\n\n```(value - min) / (max - min)```\n\n## License\n\nMIT, see [LICENSE.md](http://github.com/mattdesl/unlerp/blob/master/LICENSE.md) for details.\n","maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"time":{"modified":"2022-06-28T05:08:14.829Z","created":"2014-09-09T15:24:07.303Z","1.0.0":"2014-09-09T15:24:07.303Z","1.0.1":"2014-09-09T15:46:55.342Z"},"homepage":"https://github.com/mattdesl/unlerp","keywords":["gl","glsl","math","lerp","linear","interpolation","unlerp","norm","normalize","normalise","normalized","range","vector"],"repository":{"type":"git","url":"git://github.com/mattdesl/unlerp.git"},"author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com"},"bugs":{"url":"https://github.com/mattdesl/unlerp/issues"},"license":"MIT","readmeFilename":"README.md"}