예제 #1
0
 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));
 }
예제 #2
0
 public override IQuantity <double> From(IQuantity <double> quantity)
 {
     return(DegKelvin.From(quantity));
 }