npm.nicfv.com

    Function expand

    • Expand a normalized number n to the range min, max

      Parameters

      • n: number

        A normalized number

      • min: number

        The minimum value in the range

      • max: number

        The maximum value in the range

      Returns number

      A value within the number range

      const y = SMath.expand(0.25, 4, 6); // 4.5
      
    MMNEPVFCICPMFPCPTTAAATR