Dimensions

data class Dimensions(val factors: Set<Factor>) : UnitPresentation

Describes dimensions of an unit with help of factors. A factor describe one separate dimension.

Constructors

Link copied to clipboard
constructor(factors: Set<Factor>)

Creates dimensions of an unit with help of factors.

Functions

Link copied to clipboard
open override fun categorySymbols(): String

Returns representation of unit as sequence of separate category symbols and their powers according SI-Standard recommendations.

Link copied to clipboard

Check compatibility for algebraic operations for dimension objects.

Link copied to clipboard
operator fun Dimensions.plus(other: Dimensions): Dimensions

Allows to add dimensions.

Link copied to clipboard

Allows to calculate dimension's power.

Link copied to clipboard
operator fun Dimensions.times(other: Dimensions): Dimensions

Allows to multiply dimensions.

Link copied to clipboard
open override fun unitSymbols(): String

Returns representation of unit as sequence of separate union symbols and their powers according SI-Standard recommendations.

Properties

Link copied to clipboard