public SpecificHeatCapacity ConvertTo(SpecificHeatCapacityUnit newUnit) { // generator : FractionValuesGenerator.Add_ConvertTo if (Unit.Equals(newUnit)) { return(this); } var a = new EnergyMassDensity(Value, Unit.CounterUnit); var b = new KelvinTemperature(1, Unit.DenominatorUnit); a = a.ConvertTo(newUnit.CounterUnit); b = b.ConvertTo(newUnit.DenominatorUnit); return(new SpecificHeatCapacity(a.Value / b.Value, newUnit)); }
public bool Equals(KelvinTemperature other) { return Value == other.Value && !(Unit is null) && Unit.Equals(other.Unit); }
public int CompareTo(KelvinTemperature other) { return UnitedValuesUtils.Compare<KelvinTemperature, KelvinTemperatureUnit>(this, other); }