DpVolumeSize

class DpVolumeSize


Represents the size of a volume in density-independent pixels (Dp).

This class provides a convenient way to store and manipulate the width, height, and depth of a 3D volume in Dp. It also provides methods to convert to and from Dimensions in meters.

Summary

Public companion properties

DpVolumeSize

A DpVolumeSize with all dimensions set to 0.dp.

Public constructors

DpVolumeSize(width: Dp, height: Dp, depth: Dp)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

Dp

the size of the volume along the z dimension, in Dp.

Dp

the size of the volume along the y dimension, in Dp.

Dp

the size of the volume along the x dimension, in Dp.

Public companion properties

Zero

Added in 1.0.0-alpha01
val ZeroDpVolumeSize

A DpVolumeSize with all dimensions set to 0.dp.

Public constructors

DpVolumeSize

DpVolumeSize(width: Dp, height: Dp, depth: Dp)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

depth

Added in 1.0.0-alpha01
val depthDp

the size of the volume along the z dimension, in Dp. Panels have 0 depth and cannot be set to non-zero depth.

height

Added in 1.0.0-alpha01
val heightDp

the size of the volume along the y dimension, in Dp.

width

Added in 1.0.0-alpha01
val widthDp

the size of the volume along the x dimension, in Dp.