interpolate MethodStatic

Simple interpolation between values a and b with fraction f.

  • If f = 0, then a is returned and if f = 1, then b is returned.
  • For maximum accuracy, we choose a or b as starting point based on fraction f.

interpolate(a: number, f: number, b: number): number

Parameter Type Description
a number  
f number  
b number  

Returns - number

Defined in

Last Updated: 14 November, 2024