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