We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d08554 commit 21afd13Copy full SHA for 21afd13
1 file changed
vlib/math/interpolation.v
@@ -36,7 +36,7 @@ pub fn clip[T](x T, min_value T, max_value T) T {
36
}
37
38
// remap the input `x`, from the range [`a`,`b`] to [`c`,`d`] .
39
-// Example: math.remap(20, 1, 100, 50, 5000) == 1000
+// Example: assert math.remap(20, 1, 100, 50, 5000) == 1000
40
// Note: `a` should be != `b`.
41
@[inline]
42
pub fn remap[T](x T, a T, b T, c T, d T) T {
0 commit comments