示例#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));
 }