From 5a0d5ff1047cb88a0d187dd1bd7a55ee695d6bb0 Mon Sep 17 00:00:00 2001 From: Darth Affe Date: Tue, 25 Dec 2018 18:55:19 +0100 Subject: [PATCH] Changed internal MathHelper-method to public --- RGB.NET.Core/Extensions/MathExtensions.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/RGB.NET.Core/Extensions/MathExtensions.cs b/RGB.NET.Core/Extensions/MathExtensions.cs index 59342d0..415a53c 100644 --- a/RGB.NET.Core/Extensions/MathExtensions.cs +++ b/RGB.NET.Core/Extensions/MathExtensions.cs @@ -68,20 +68,16 @@ namespace RGB.NET.Core return value; } - - #region Internal - + [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte GetByteValueFromPercentage(this double percentage) + public static byte GetByteValueFromPercentage(this double percentage) { if (double.IsNaN(percentage)) return 0; percentage = percentage.Clamp(0, 1.0); return (byte)(percentage.Equals(1.0) ? 255 : percentage * 256.0); } - - #endregion - + #endregion } }