PxCubed
@Immutable inline class PxCubed : Comparable<PxCubed>
kotlin.Any  
↳  androidx.ui.core.PxCubed 
Holds a unit of cubed dimensions, such as 1.value * 2.value * 3.px
. PxSquared,
PxCubed, and PxInverse are used primarily for Px calculations to
ensure resulting units are as expected. Many times, Px calculations use scalars to
determine the final dimension during calculation:
val width = oldWidth * stretchAmount
Other times, it is useful to do intermediate calculations with Dimensions directly:
val width = oldWidth * newTotalWidth / oldTotalWidth
Summary
Public constructors 


Holds a unit of cubed dimensions, such as 
Public methods 


operator Int 
Support comparing PxCubed with comparison operators. 
operator PxCubed 
Divide a PxCubed by a scalar. 
operator PxSquared  
operator Px  
operator Float 
Divide by a PxCubed to get a scalar result. 
operator PxCubed 
Subtract a PxCubed from another one. 
operator PxCubed 
Add two PxCubed together. 
operator PxCubed 
Multiply by a scalar to get a PxCubed result. 
String 
toString() 
Properties 


Float 
Public constructors
<init>
PxCubed(value: Float)
Holds a unit of cubed dimensions, such as 1.value * 2.value * 3.px
. PxSquared,
PxCubed, and PxInverse are used primarily for Px calculations to
ensure resulting units are as expected. Many times, Px calculations use scalars to
determine the final dimension during calculation:
val width = oldWidth * stretchAmount
Other times, it is useful to do intermediate calculations with Dimensions directly:
val width = oldWidth * newTotalWidth / oldTotalWidth
Public methods
compareTo
inline operator fun compareTo(other: PxCubed): Int
Support comparing PxCubed with comparison operators.
times
inline operator fun times(other: Float): PxCubed
Multiply by a scalar to get a PxCubed result.
toString
fun toString(): String
Properties
value
val value: Float