Esempio n. 1
0
 public static byte RoundClamp(float value) =>
 (byte)GeneralMath.Clamp((int)Math.Round(value), byte.MinValue, byte.MaxValue);
Esempio n. 2
0
 public static byte FloorClamp(float value) =>
 (byte)GeneralMath.Clamp((int)value, byte.MinValue, byte.MaxValue);