Function Clamp

  • Clamps number between min and max

    Returns

    Clamped number

    Parameters

    • a: number

      Value to clamp

    • min: number

      The minimum value

    • max: number

      The maximum value

    Returns number