All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gw.util.science.Temperature.gs Maven / Gradle / Ivy

There is a newer version: 1.18.2
Show newest version
package gw.util.science

uses gw.util.Rational

final class Temperature extends AbstractMeasure {
  construct( value: Rational, unit: TemperatureUnit, displayUnit: TemperatureUnit ) {
    super( value, unit, displayUnit, TemperatureUnit.Kelvin )
  }
  construct( value: Rational, unit: TemperatureUnit ) {
    this( value, unit, unit )
  }
  
  function multiply( c: HeatCapacity ) : Energy {
    return new Energy( toBaseNumber() * c.toBaseNumber(), EnergyUnit.BASE, c.Unit.EnergyUnit )
  }  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy