speed library

Provides type-safe units for Speed.

Import this file to use Speed quantities and their extensions on num (like 100.kmh, 60.mph).

Classes

Quantity<T extends Unit<T>>
An abstract representation of a physical quantity, encapsulating a numerical value and a specific unit of measurement.
Speed
Represents a quantity of speed (or velocity).
Unit<T extends Unit<T>>
A contract for all unit enums.

Enums

SpeedUnit
Represents units of speed.

Extensions

SpeedCreation on num
Provides convenient factory methods for creating Speed instances from num.
SpeedValueGetters on Speed
Provides convenient access to Speed values in specific units.