// Copyright (c) 2015 - 2023 Doozy Entertainment. All Rights Reserved.
// This code can only be used under the standard Unity Asset Store End User License Agreement
// A Copy of the EULA APPENDIX 1 is available at http://unity3d.com/company/legal/as_terms
using UnityEngine;
namespace Doozy.Runtime.Common.Extensions
{
/// Extension methods for the int (Int32) struct
public static class IntExtensions
{
/// Clamp the value between the given minimum integer and maximum integer values
/// Target integer
/// The minimum integer point value to compare against
/// The maximum integer point value to compare against
/// Clamped int
public static int Clamp(this int target, int min, int max) =>
Mathf.Clamp(target, min, max);
}
}