Пример #1
0
 public static float LerpFromRangeUnclamped(this RangedInt ranged, float t)
 {
     return(Mathf.LerpUnclamped(ranged.Min, ranged.Max, t));
 }
Пример #2
0
 /// <summary>
 /// Value is in a RangedInt, max-inclusive.
 /// </summary>
 public static bool InRangeInclusive(this int value, RangedInt range) =>
 value.InRangeInclusive(range.Min, range.Max);
Пример #3
0
 public static float LerpFromRange(this RangedInt ranged, float t)
 {
     return(Mathf.Lerp(ranged.x, ranged.y, t));
 }