Function remap

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

    Parameters

    • 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

    ∈ [ymin, ymax]

Generated using TypeDoc