We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 924e521 commit 1ea8163Copy full SHA for 1ea8163
src/float.rs
@@ -1,9 +1,9 @@
1
/// A trait for extending [`prim@f32`] and [`prim@f64`] with extra methods.
2
pub trait FloatExt {
3
- /// Performs a linear interpolation between `self` and `rhs` based on the value `t`.
+ /// Performs a linear interpolation between `self` and `rhs` based on the value `s`.
4
///
5
- /// When `t` is `0`, the result will be `self`. When `t` is `1`, the result
6
- /// will be `rhs`. When `t` is outside of the range `[0, 1]`, the result is linearly
+ /// When `s` is `0`, the result will be `self`. When `s` is `1`, the result
+ /// will be `rhs`. When `s` is outside of the range `[0, 1]`, the result is linearly
7
/// extrapolated.
8
#[must_use]
9
fn lerp(self, rhs: Self, s: Self) -> Self;
0 commit comments