示例#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));
 }
 public override IQuantity <double> From(IQuantity <double> quantity)
 {
     return(DegRankine.From(quantity));
 }