UnitsProduct

class UnitsProduct<A : Units, B : Units>(val first: A, val second: B) : Units(source)

Represents the product of two Units: A * B.

Parameters

first

unit being multiplied

second

unit being multiplied

Constructors

Link copied to clipboard
constructor(first: A, second: B)

Properties

Link copied to clipboard
val first: A
Link copied to clipboard
val second: B

Inherited properties

Link copied to clipboard
val ratio: Double = 1.0
Link copied to clipboard

Inherited functions

Link copied to clipboard
@JvmName(name = "div1")
operator fun <A : Units, B : Units> UnitsProduct<A, B>.div(other: A): Measure<B>

(A * B) / A

@JvmName(name = "div1")
operator fun <A : Units, B : Units, C : Units> UnitsProduct<A, B>.div(other: UnitsProduct<C, B>): UnitsRatio<A, C>

(A * B) / (C * B)

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String