Function remap

  • Re-map a number from one range to another. 📘


    ∈ [ymin, ymax]


    • x: number

      a number

    • r: number

      lower bound of current range

    • R: number

      upper bound of current range

    • t: number

      lower bound of target range

    • T: number

      upper bound of target range

    Returns number

Generated using TypeDoc