measurement-toolkit › "Length/SI/Kilometer" › Kilometer
↳ Kilometer
+ new Kilometer(value
: number): Kilometer
Inherited from SimpleUnit.constructor
Defined in SimpleUnit.ts:17
Parameters:
Name | Type |
---|---|
value |
number |
Returns: Kilometer
• baseUnit: Meter‹› = new Meter(this.value * Math.pow(10, 3))
Implementation of IDerivedUnit.baseUnit
Overrides SimpleDerivedUnit.baseUnit
Defined in Length/SI/Kilometer.ts:13
• symbol: string = "km"
Implementation of IUnitOfLength.symbol
Overrides SimpleUnit.symbol
Defined in Length/SI/Kilometer.ts:14
• value: number
Implementation of IUnitOfLength.value
Inherited from SimpleUnit.value
Defined in SimpleUnit.ts:15
• get to(): any
Defined in Unit.ts:14
Returns: any
▸ add(unit
: SimpleUnit): this
Inherited from SimpleUnit.add
Defined in SimpleUnit.ts:35
Parameters:
Name | Type |
---|---|
unit |
SimpleUnit |
Returns: this
▸ divideBy(unit
: SimpleUnit): this
Inherited from SimpleUnit.divideBy
Defined in SimpleUnit.ts:41
Parameters:
Name | Type |
---|---|
unit |
SimpleUnit |
Returns: this
▸ dividedBy(unit
: SimpleUnit): this
Inherited from SimpleUnit.dividedBy
Defined in SimpleUnit.ts:47
Parameters:
Name | Type |
---|---|
unit |
SimpleUnit |
Returns: this
▸ getConverters(): object
Implementation of IUnitOfLength
Inherited from SimpleDerivedUnit.getConverters
Overrides SimpleUnit.getConverters
Defined in SimpleDerivedUnit.ts:19
Returns: object
- [ key: string]: function
▸ (): ISimpleUnit
▸ multiply(unit
: SimpleUnit): this
Inherited from SimpleUnit.multiply
Defined in SimpleUnit.ts:53
Parameters:
Name | Type |
---|---|
unit |
SimpleUnit |
Returns: this
▸ percentageOf(unit
: SimpleUnit): this
Inherited from SimpleUnit.percentageOf
Overrides Unit.percentageOf
Defined in SimpleUnit.ts:59
Parameters:
Name | Type |
---|---|
unit |
SimpleUnit |
Returns: this
▸ percentageOfThis(unit
: SimpleUnit): this
Inherited from SimpleUnit.percentageOfThis
Defined in SimpleUnit.ts:65
Parameters:
Name | Type |
---|---|
unit |
SimpleUnit |
Returns: this
▸ subtract(unit
: SimpleUnit): this
Inherited from SimpleUnit.subtract
Defined in SimpleUnit.ts:29
Parameters:
Name | Type |
---|---|
unit |
SimpleUnit |
Returns: this
▸ toString(): string
Implementation of IUnitOfLength
Inherited from SimpleUnit.toString
Defined in SimpleUnit.ts:71
Returns: string