2 using System.ComponentModel;
4 namespace Tizen.NUI.Binding.Internals
6 internal static class NumericExtensions
9 public static double Clamp(this double self, double min, double max)
11 return Math.Min(max, Math.Max(self, min));
14 public static float Clamp(this float self, float min, float max)
16 return Math.Min(max, Math.Max(self, min));
19 public static int Clamp(this int self, int min, int max)
21 return Math.Min(max, Math.Max(self, min));