Convenience functions for working with scalar (floating-point) values.
Interpolate from the first value to the second, based on a parameter that ranges from zero to one. Passing a parameter value of zero will return the start value and passing a parameter value of one will return the end value.
Scalar.interpolateFrom 5 10 0.5
--> 7.5
Scalar.interpolateFrom 2 -2 0.75
--> -1Parameter values less than zero or greater than one can be used to extrapolate:
Scalar.interpolateFrom 5 10 1.5
--> 12.5
Scalar.interpolateFrom 2 -2 -0.25
--> 3
Check if two values are equal within a given tolerance.