LinearInterpolation

Linear interpolation between the two values, missing if either of them is, unless the weight falls exactly on the other one (0 for the value before, 1 for the value after).

Functions

Link copied to clipboard
open override fun interpolate(valueBefore: Double, valueAfter: Double, weight: Double): Double

The value between valueBefore and valueAfter, at weight from 0 (before) to 1 (after).