Function remap

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

    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

    ∈ [ymin, ymax]

Generated using TypeDoc