NumericExtensions public static class NumericExtensions Documentation Code public static double Clamp(this double self, double min, double max) public static int Clamp(this int self, int min, int max)