private static void AssertValueNotBelowAbsZero(double value, TemperatureUnit unit) { if (unit.ToKelvin(value) < 0.0) { throw new TemperatureIsBelowAbsoluteZeroException(value, unit); } }
private static double ConvertUnit(double value, TemperatureUnit from, TemperatureUnit to) { return(to.FromKelvin(from.ToKelvin(value))); }