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
Link copied to clipboard
val second: B
Link copied to clipboard

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 = "div2")
operator fun <A : Units, B : Units> UnitsProduct<A, B>.div(other: B): Measure<A>

(A * B) / B

@JvmName(name = "div3")
operator fun <A : Units> UnitsProduct<A, A>.div(other: A): Measure<A>

(A * A) / 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)

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

(A * B) / (C * A)

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

(A * B) / (B * C)

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

(A * B) / (A * C)

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

(A * B) / (A * A)

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

(A * B) / (A * B)

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

(A * B) / (B * A)

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

(A * B) / (B * 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