コード例 #1
0
 public static byte RoundClamp(float value) =>
 (byte)GeneralMath.Clamp((int)Math.Round(value), byte.MinValue, byte.MaxValue);
コード例 #2
0
 public static byte FloorClamp(float value) =>
 (byte)GeneralMath.Clamp((int)value, byte.MinValue, byte.MaxValue);