Replying to @
@shanemhansen My math sucks, but not, AFAIK, piecewise. Just normal linear interpolation:

a._2 + ((b._2 - a._2) * ((x - a._1) / (b._1 - a._1)))
@shanemhansen Spline interpolation, polynomial interpolation are beyond what I was comfortable with.
Ian Brown @igb
@shanemhansen Accuracy is less of a concern here, as a rough approximation is fine for what we are trying to do.
View on Twitter ↗
0 0

Replies

@shanemhansen But maybe I'll add more complex interpolation options in future releases once I figure them out. PRs are welcome too! :-)