Documentation / @ripl/core / Interpolator
Type Alias: Interpolator<TValue> ​
Interpolator<
TValue> = (position) =>TValue
Defined in: packages/core/src/interpolators/types.ts:2
A function that interpolates between two values based on a normalized position (0–1).
Type Parameters ​
| Type Parameter | Default type |
|---|---|
TValue | number |
Parameters ​
| Parameter | Type |
|---|---|
position | number |
Returns ​
TValue