https://github.com/dmnsgn/eerp
Logarithmic/exponential interpolation.
https://github.com/dmnsgn/eerp
eerp exponential interpolation lerp logarithmic logerp
Last synced: 29 days ago
JSON representation
Logarithmic/exponential interpolation.
- Host: GitHub
- URL: https://github.com/dmnsgn/eerp
- Owner: dmnsgn
- License: mit
- Created: 2021-11-08T15:18:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-06T14:26:27.000Z (11 months ago)
- Last Synced: 2025-04-20T22:32:51.660Z (about 1 month ago)
- Topics: eerp, exponential, interpolation, lerp, logarithmic, logerp
- Language: JavaScript
- Homepage: https://dmnsgn.github.io/eerp/
- Size: 446 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# eerp
[](https://www.npmjs.com/package/eerp)
[](https://www.npmjs.com/package/eerp)
[](https://bundlephobia.com/package/eerp)
[](https://github.com/dmnsgn/eerp/blob/main/package.json)
[](https://github.com/microsoft/TypeScript)
[](https://conventionalcommits.org)
[](https://github.com/prettier/prettier)
[](https://github.com/eslint/eslint)
[](https://github.com/dmnsgn/eerp/blob/main/LICENSE.md)Logarithmic/exponential interpolation.
[](https://paypal.me/dmnsgn)
[](https://commerce.coinbase.com/checkout/56cbdf28-e323-48d8-9c98-7019e72c97f3)
[](https://twitter.com/dmnsgn)Based on [Freya Holmér naming](https://twitter.com/FreyaHolmer/status/1068293398073929728) and [Scott Lembcke' Logarithmic Interpolation](https://www.gamedeveloper.com/programming/logarithmic-interpolation).

## Installation
```bash
npm install eerp
```## Usage
```js
import eerp from "eerp";const i = eerp(a, b, t);
```## API
## eerp
### eerp(a, b, t) ⇒
number
⏏Logarithmic/exponential interpolation
**Kind**: Exported function
| Param | Type | Description |
| ----- | ------------------- | ----------- |
| a |number
| Start |
| b |number
| End |
| t |number
| Interpolant |## License
MIT. See [license file](https://github.com/dmnsgn/eerp/blob/main/LICENSE.md).