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