lndsld

Home > @lndsld/math > interpolate

interpolate() function

Interpolates value from one range to another

Signature:

declare function interpolate(valueRange: IRange2, targetRange: IRange2): Transform<number>;

Parameters

Parameter Type Description
valueRange IRange2  
targetRange IRange2  

Returns:

Transform<number>