예제 #1
0
 public static float LerpFromRangeUnclamped(this RangedFloat ranged, float t)
 {
     return(Mathf.LerpUnclamped(ranged.Min, ranged.Max, t));
 }
예제 #2
0
파일: MyMath.cs 프로젝트: Deadcows/MyBox
 /// <summary>
 /// Value is in a RangedFloat, max-inclusive.
 /// </summary>
 public static bool InRangeInclusive(this float value, RangedFloat range) =>
 value.InRangeInclusive(range.Min, range.Max);
예제 #3
0
 public static float LerpFromRange(this RangedFloat ranged, float t)
 {
     return(Mathf.Lerp(ranged.x, ranged.y, t));
 }