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