/// <summary> /// Initializes a new instance of <see cref="T:Gu.Units.Temperature"/>. /// </summary> /// <param name="value"></param> /// <param name="unit"><see cref="T:Gu.Units.Kelvin"/>.</param> public Temperature(double value, TemperatureUnit unit) { this.kelvin = unit.ToSiUnit(value); }
/// <summary> /// Creates a new instance of <see cref="T:Gu.Units.Temperature"/>. /// </summary> /// <param name="value"></param> /// <param name="unit"></param> public static Temperature From(double value, TemperatureUnit unit) { return(new Temperature(unit.ToSiUnit(value))); }