Exemple #1
0
 public float nextFloatInRange(FRange range, out Rng newState) =>
 floatToFloatInRange(range, nextFloat(out newState));
Exemple #2
0
 public static Fn <Rng, Tpl <Rng, float> > nextFloatInRangeS(FRange range) =>
 rng => rng.nextFloatInRangeT(range);
Exemple #3
0
 static float floatToFloatInRange(FRange range, float v) =>
 range.from + (range.to - range.from) * v;
Exemple #4
0
 public Tpl <Rng, float> nextFloatInRangeT(FRange range) =>
 nextFloatT.map2(v => floatToFloatInRange(range, v));
Exemple #5
0
 public static float lerpVal(this FRange range, float t) => Mathf.Lerp(range.from, range.to, t);