public static Rankine From(IQuantity <double> q) { Scale <double> scale = Catalog.Scale(Rankine.Family, q.Unit); if (scale == null) { throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" to \"Rankine\".", q.GetType().Name)); } return(Rankine.From(scale.Create(q.Value))); }
public override ILevel <double> From(IQuantity <double> quantity) { return(Rankine.From(quantity)); }
public int /* IComparable<Rankine> */ CompareTo(Rankine other) { return(this.m_level.CompareTo(other.m_level)); }
public override ILevel <double> From(ILevel <double> level) { return(Rankine.From(level)); }
public bool /* IEquatable<Rankine> */ Equals(Rankine other) { return(this.m_level == other.m_level); }