Exemple #1
0
        public MassDetlaKelvin ConvertTo(MassDetlaKelvinUnit newUnit)
        {
            // generator : ProductValuesGenerator.Add_ConvertTo
            if (Unit.Equals(newUnit))
            {
                return(this);
            }
            var a = new Mass(Value, Unit.LeftUnit);
            var b = new DeltaKelvinTemperature(1, Unit.RightUnit);

            a = a.ConvertTo(newUnit.LeftUnit);
            b = b.ConvertTo(newUnit.RightUnit);
            return(new MassDetlaKelvin(a.Value / b.Value, newUnit));
        }
Exemple #2
0
 public bool Equals(DeltaKelvinTemperature other)
 {
     return(Value == other.Value && !(Unit is null) && Unit.Equals(other.Unit));
 }
Exemple #3
0
 public int CompareTo(DeltaKelvinTemperature other)
 {
     return(UnitedValuesUtils.Compare <DeltaKelvinTemperature, KelvinTemperatureUnit>(this, other));
 }