private bool InterpolateBool(bool min, bool max, double attr) { double frac = Fraction(attr); if (frac > 0.5) return max; else return min; }