Class UnitValue<U, T>

Unit value

Usage

Creation

const value = new UnitValue(5, LengthUnit.METER);

Conversion

const value = new UnitValue(5, LengthUnit.METER);
const converted = value.to(LengthUnit.CENTIMETER);

Type Parameters

Constructors

Properties

Accessors

Methods

Constructors

Properties

_unit: U
_value: T

Accessors

Methods