UnitLengthExtension extension

Extension for UnitLength enum.

on

Properties

isImperial bool

Available on UnitLength, provided by the UnitLengthExtension extension

Returns true if this unit is a Imperial System of Units.
no setter
isMetric bool

Available on UnitLength, provided by the UnitLengthExtension extension

Returns true if this unit is a Metric System Unit (officially called International System of Units - SI).
no setter
isSI bool

Available on UnitLength, provided by the UnitLengthExtension extension

Returns true if this unit is a International System of Units (SI), commonly known as the Metric System.
no setter
name String

Available on UnitLength, provided by the UnitLengthExtension extension

Returns the name of this unit.
no setter
unit String

Available on UnitLength, provided by the UnitLengthExtension extension

Returns the abbreviation of this unit.
no setter

Methods

convertTo(UnitLength targetUnit, num value) num

Available on UnitLength, provided by the UnitLengthExtension extension

Converts value from this UnitLength to targetUnit.