gw.util.science.HeatCapacity.gs Maven / Gradle / Ivy
package gw.util.science
uses gw.util.Rational
final class HeatCapacity extends AbstractMeasure {
construct( value : Rational, unit: HeatCapacityUnit, displayUnit: HeatCapacityUnit ) {
super( value, unit, displayUnit, HeatCapacityUnit.BASE )
}
construct( value : Rational, unit: HeatCapacityUnit ) {
this( value, unit, unit )
}
function multiply( temperature: Temperature ) : Energy {
return new Energy( toBaseNumber() * temperature.toBaseNumber(), EnergyUnit.BASE, Unit * temperature.Unit )
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy