turbodombuilder - v0.9.5
    Preparing search index...

    Function linearInterpolation

    • Parameters

      • x: number
      • x1: number
      • x2: number
      • y1: number
      • y2: number
      • strict: boolean = true

      Returns number

      Interpolates x linearly between (x1, y1) and (x2, y2). If strict is true, then x will not be allowed to go beyond [x1, x2].