-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-floating-pointArea: Floating point numbers and arithmeticArea: Floating point numbers and arithmeticC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
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?
orlp, kocsis1david, kaleidawave, IcanDivideBy0, WilliamVenner and 6 moreorekhoff, koalefant and halvnykterist
Metadata
Metadata
Assignees
Labels
A-floating-pointArea: Floating point numbers and arithmeticArea: Floating point numbers and arithmeticC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.