Supported quantities
Each quantity class lives in the Renfordt\UnitLib namespace. The native unit is the
first unit listed and has a conversion factor of 1.0. Quantities marked "SI prefixes"
accept any metric-prefixed form of their base unit in addition to the units listed (see
SI units).
Most units carry aliases (alternate spellings and abbreviations). The tables below list
the canonical symbols; consult the source initialise() method of each class for the
complete alias set.
Base quantities
Length
SI prefixes (base m). Native unit: m.
m, in, ft, yd, mi, nmi (nautical mile).
Mass
SI prefixes (base g). Native unit: g.
g, t (tonne), oz, lb, st (stone), ton (short/US ton), long ton
(imperial ton).
Time
SI prefixes (base s). Native unit: s.
s, min, h, d (day), wk (week), yr (year, 365.25 days).
Temperature
No SI prefixes; offset-based conversion. Native unit: K. See
Temperature.
K, °C, °F, °R (Rankine).
Electric current
SI prefixes (base A). Native unit: A.
A.
Luminous intensity
SI prefixes (base cd). Native unit: cd.
cd.
Amount of substance
SI prefixes (base mol). Native unit: mol.
mol.
Geometric quantities
Area
SI prefixes (base m², including power notation). Native unit: m².
m², a (are), ha (hectare), in², ft², yd², ac (acre), mi².
Volume
SI prefixes (base m³, including power notation). Native unit: m³.
m³, L, mL, in³, ft³, yd³, fl oz, cup, pt, qt, gal,
imp fl oz, imp pt, imp qt, imp gal.
Angle
No SI prefixes. Native unit: rad.
rad, ° (degree), ' (arcminute), " (arcsecond).
Mechanical quantities
Velocity
SI prefixes (base m/s). Native unit: m/s.
m/s, km/h, mph, ft/s, kt (knot). Factory: fromLengthAndTime().
Acceleration
SI prefixes (base m/s²). Native unit: m/s².
m/s², g (standard gravity, 9.80665), ft/s², Gal (galileo). Factories:
fromVelocityAndTime(), fromLengthAndTime().
Force
SI prefixes (base N). Native unit: N.
N, dyn, kgf, lbf, pdl (poundal).
Pressure
SI prefixes (base Pa). Native unit: Pa.
Pa, bar, mbar, atm, Torr, mmHg, psi, psf, inHg, at
(technical atmosphere).
Torque
SI prefixes (base N⋅m). Native unit: N⋅m.
N⋅m, lbf⋅ft, lbf⋅in, dyn⋅cm.
Density
SI prefixes (base kg/m³). Native unit: kg/m³.
kg/m³, g/cm³, g/L, lb/ft³, lb/gal.
Energy and power
Energy
SI prefixes (base J). Native unit: J.
J, Wh, kWh, cal, kcal, BTU, eV, erg, ft·lbf.
Power
SI prefixes (base W). Native unit: W.
W, hp (mechanical), PS (metric horsepower), hp(E) (electric horsepower),
BTU/h, cal/s, ft·lbf/s.
Frequency
SI prefixes (base Hz). Native unit: Hz.
Hz, RPM, BPM, rad/s.
Electrical quantities
Voltage
SI prefixes (base V). Native unit: V.
V.
Resistance
SI prefixes (base Ω). Native unit: Ω.
Ω.
Charge
SI prefixes (base C). Native unit: C.
C, e (elementary charge), Ah, mAh.
Capacitance
SI prefixes (base F). Native unit: F.
F.
Inductance
SI prefixes (base H). Native unit: H.
H.
Magnetic flux
SI prefixes (base Wb). Native unit: Wb.
Wb, Mx (maxwell).