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

gw.util.science.Frequency.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 Frequency extends AbstractMeasure {
  construct( value: Rational, unit: FrequencyUnit, displayUnit: FrequencyUnit ) {
    super( value, unit, displayUnit, FrequencyUnit.BASE )
  }
  construct( value : Rational, unit: FrequencyUnit ) {
    this( value, unit, unit )
  }

  function multiply( time: Time ) : Angle {
    return new Angle( toBaseNumber() * time.toBaseNumber(), AngleUnit.BASE, Unit.AngleUnit )
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy