Пример #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));
 }
Пример #2
0
 public bool /* IEquatable<DegRankine> */ Equals(DegRankine other)
 {
     return(this.m_value == other.m_value);
 }
Пример #3
0
 public override IQuantity <double> From(IQuantity <double> quantity)
 {
     return(DegRankine.From(quantity));
 }
Пример #4
0
 public int /* IComparable<DegRankine> */ CompareTo(DegRankine other)
 {
     return(this.m_value.CompareTo(other.m_value));
 }
Пример #5
0
 public Rankine(DegRankine level)
 {
     m_level = level;
 }