3 namespace Tizen.NUI.XamlBinding.Internals
5 internal static class NumericExtensions
8 public static double Clamp(this double self, double min, double max)
10 return Math.Min(max, Math.Max(self, min));
13 public static float Clamp(this float self, float min, float max)
15 return Math.Min(max, Math.Max(self, min));
18 public static int Clamp(this int self, int min, int max)
20 return Math.Min(max, Math.Max(self, min));