Skip to main content

Module quantity

Module quantity 

Source
Expand description

Quantity dimension algebra and unit conversions (T73).

SI base dimensions and derived unit conversions computed via dimensional exponents.

Structs§

Dimension
SI Base Dimensions: Length (m), Mass (kg), Time (s), Current (A), Temperature (K), Amount of substance (mol), Luminous intensity (cd).
Unit
A physical unit with a dimension, scaling factor to SI base units, and optional affine offset.
UnitId
Canonical unit identifier used at check time (T73 / UnitId).

Functions§

lookup_unit
Look up standard units by symbol.
tween
Linear tween of two same-unit scalars. t is clamped to [0, 1].