示例#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 Kelvin(DegKelvin level)
 {
     m_level = level;
 }
示例#3
0
 public override IQuantity <double> From(IQuantity <double> quantity)
 {
     return(DegKelvin.From(quantity));
 }
示例#4
0
 public bool /* IEquatable<DegKelvin> */ Equals(DegKelvin other)
 {
     return(this.m_value == other.m_value);
 }
示例#5
0
 public int /* IComparable<DegKelvin> */ CompareTo(DegKelvin other)
 {
     return(this.m_value.CompareTo(other.m_value));
 }