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