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