pressure library

Provides type-safe units for Pressure.

Import this file to use Pressure quantities and their extensions on num (like 1.atm, 32.psi).

Classes

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

Enums

PressureUnit
Represents units of pressure.

Extensions

PressureCreation on num
Provides convenient factory methods for creating Pressure instances from num using shortened unit names where appropriate.
PressureValueGetters on Pressure
Provides convenient access to Pressure values in specific units using shortened unit names where appropriate.