Chemistry · function

rateAt

The rate at a temperature.

Explained in Chemistry.

function rateAt(table: RateTable, temperature: number): number
import { rateAt } from '@driftengine/chemistry';

Parameters

ParameterTypeDescription
tableRateTable
temperaturenumber

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.