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