measurement-toolkit"SimpleUnit"SimpleUnit

Class: SimpleUnit

Hierarchy

SimpleUnit

SimpleBaseUnit

SimpleDerivedUnit

Implements

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

+ new SimpleUnit(value: number): SimpleUnit

Defined in SimpleUnit.ts:17

Parameters:

Name Type
value number

Returns: SimpleUnit

Properties

Abstract symbol

symbol: string

Implementation of ISimpleUnit.symbol

Defined in SimpleUnit.ts:13


value

value: number

Implementation of ISimpleUnit.value

Defined in SimpleUnit.ts:15

Accessors

to

get to(): any

Inherited from Unit.to

Defined in Unit.ts:14

Returns: any

Methods

add

add(unit: SimpleUnit): this

Overrides Unit.add

Defined in SimpleUnit.ts:35

Parameters:

Name Type
unit SimpleUnit

Returns: this


divideBy

divideBy(unit: SimpleUnit): this

Overrides Unit.divideBy

Defined in SimpleUnit.ts:41

Parameters:

Name Type
unit SimpleUnit

Returns: this


dividedBy

dividedBy(unit: SimpleUnit): this

Defined in SimpleUnit.ts:47

Parameters:

Name Type
unit SimpleUnit

Returns: this


getConverters

getConverters(): object

Implementation of ISimpleUnit

Overrides Unit.getConverters

Defined in SimpleUnit.ts:25

Returns: object

▸ (): ISimpleUnit


multiply

multiply(unit: SimpleUnit): this

Overrides Unit.multiply

Defined in SimpleUnit.ts:53

Parameters:

Name Type
unit SimpleUnit

Returns: this


percentageOf

percentageOf(unit: SimpleUnit): this

Overrides Unit.percentageOf

Defined in SimpleUnit.ts:59

Parameters:

Name Type
unit SimpleUnit

Returns: this


percentageOfThis

percentageOfThis(unit: SimpleUnit): this

Defined in SimpleUnit.ts:65

Parameters:

Name Type
unit SimpleUnit

Returns: this


subtract

subtract(unit: SimpleUnit): this

Overrides Unit.subtract

Defined in SimpleUnit.ts:29

Parameters:

Name Type
unit SimpleUnit

Returns: this


toString

toString(): string

Implementation of ISimpleUnit

Defined in SimpleUnit.ts:71

Returns: string