Chemistry · function
rateAt
The rate at a temperature.
Explained in Chemistry.
function rateAt(table: RateTable, temperature: number): numberimport { rateAt } from '@driftengine/chemistry';Parameters
| Parameter | Type | Description |
|---|---|---|
table | RateTable | |
temperature | number |
In depth
Two multiplications, a floor and a lerp. Clamped at both ends rather than extrapolated: linearly extrapolating an exponential is how a rate table produces a number with nothing behind it.