Closed
Description
Feature gate: #![feature(float_interpolationl)]
This is a tracking issue for the fNN::lerp
methods in the standard library.
Public API
impl fNN {
fn lerp(self, start: Self, end: Self) -> Self;
}
Steps / History
- Earlier feature request: Implement interpolation methods in std #71015
- Earlier (closed) implementation: Linear interpolation (lerp) implementation #71016
- Implementation: Linear interpolation #85925
- Final commenting period (FCP)
- Stabilization PR
Unresolved Questions
- Should we have all of the guarantees of
std::lerp
from C++? - What specific mathematical version of lerp should we use?
- Is the calling convention good? Normally the order is
lerp(a, b, t)
but we have t.lerp(a, b)` here. - Should we have an inverse lerp method? What should it be called?