IntVolumeSize

class IntVolumeSize


Represents the size of a volume in pixels.

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

Note: As with all Int values in Compose XR, the values in this class represent pixels.

Summary

Public companion properties

IntVolumeSize

An IntVolumeSize with all dimensions set to 0.

Public constructors

IntVolumeSize(width: Int, height: Int, depth: Int)

Public functions

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

Public properties

Int

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

Int

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

Int

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

Public companion properties

Zero

Added in 1.0.0-alpha01
val ZeroIntVolumeSize

An IntVolumeSize with all dimensions set to 0.

Public constructors

IntVolumeSize

Added in 1.0.0-alpha01
IntVolumeSize(width: Int, height: Int, depth: Int)

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 depthInt

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

height

Added in 1.0.0-alpha01
val heightInt

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

width

Added in 1.0.0-alpha01
val widthInt

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