public static class Extension { public static bool InRange(this float val, float min, float max) { return val > min && val < max; } }