Function scaleclamp

  • Scales value from one range to another and clamps it down

    Parameters

    • value: number

      value to be scaled

    • min: number

      max bound to scale from

    • max: number

      max bound to scale from

    • min2: number

      max bound to scale clamp to

    • max2: number

      max bound to scale clamp to

    Returns number

    scaled and clamped value

Generated using TypeDoc