temperature library

Provides type-safe units for Temperature.

Import this file to use Temperature quantities and their extensions on num (like 25.celsius, 300.kelvin).

Classes

Quantity<T extends Unit<T>>
An abstract representation of a physical quantity, encapsulating a numerical value and a specific unit of measurement.
Temperature
Represents a quantity of temperature.
Unit<T extends Unit<T>>
A contract for all unit enums.

Enums

TemperatureUnit
Represents units of temperature.

Extensions

TemperatureCreation on num
Provides convenient factory methods for creating Temperature instances from num.
TemperatureValueGetters on Temperature
Provides convenient access to Temperature values in specific units.