mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
Added configurable LED sample size
This commit is contained in:
1 parent
2f8671045c
commit
b1870e9e64
10 files changed
+132
-17
No files matched your search
@@ -1,9 +1,11 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Artemis.Core.Extensions
|
||||
{
|
||||
public static class DoubleExtensions
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static int RoundToInt(this double number)
|
||||
{
|
||||
return (int) Math.Round(number, MidpointRounding.AwayFromZero);
|
||||
|
||||
Reference in new issue
Block a user