public static Celsius From(ILevel <double> q) { if (q.Scale.Family != Celsius.Family) { throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" to \"Celsius\".", q.GetType().Name)); } return(new Celsius(DegCelsius.From(q.NormalizedLevel) + Celsius.Offset)); }
public override IQuantity <double> From(IQuantity <double> quantity) { return(DegCelsius.From(quantity)); }