mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
Optimized noise layer
This commit is contained in:
1 parent
f91ea0f992
commit
c99e549101
3 files changed
+34
-16
No files matched your search
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
|
||||
namespace Artemis.Core.Extensions
|
||||
{
|
||||
public static class FloatExtensions
|
||||
{
|
||||
public static int RoundToInt(this float number)
|
||||
{
|
||||
return (int)Math.Round(number, MidpointRounding.AwayFromZero);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user