power library

Provides type-safe units for Power.

Import this file to use Power quantities and their extensions on num (like 100.kW, 250.hp, 1.2.gigaW).

Classes

Power
Represents a quantity of power.
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

PowerUnit
Represents units of power.

Extensions

PowerCreation on num
Provides convenient factory methods for creating Power instances from num.
PowerValueGetters on Power
Provides convenient access to Power values in specific units using getter properties.