• Parameters

    • val: number

      the value that should be mapped

    • inMax: number

      the maximum of the incoming range

    • inMin: number

      the minimum of the outcoming range

    • outMax: number

      the maximum of the outcoming range

    • outMin: number

      the minimum of the incoming range

    Returns number

    the mapped value