Function remap

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

    Returns

    ∈ [ymin, ymax]

    Parameters

    • x: bigint

      a bigint

    • r: bigint

      lower bound of current range

    • R: bigint

      upper bound of current range

    • t: bigint

      lower bound of target range

    • T: bigint

      upper bound of target range

    Returns bigint

Generated using TypeDoc