ClosestInterpolation

TemporalInterpolation that always returns the value from the closest instant.

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).