UnitLengthExtension extension
Extension for UnitLength enum.
- on
Properties
- isImperial → bool
-
Returns
true
if this unit is a Imperial System of Units.no setter - isMetric → bool
-
Returns
true
if this unit is a Metric System Unit (officially called International System of Units - SI).no setter - isSI → bool
-
Returns
true
if this unit is a International System of Units (SI), commonly known as the Metric System.no setter - name → String
-
Returns the name of this unit.
no setter
- unit → String
-
Returns the abbreviation of this unit.
no setter
Methods
-
convertTo(
UnitLength targetUnit, num value) → num -
Converts
value
from this UnitLength totargetUnit
.