Optimized noise layer

This commit is contained in:
SpoinkyNL committed 2019-12-07 16:03:14 +01:00
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);
}
}
}