<div class='sourceset sourceset-android'>Android</div>

```kotlin
public class VolumeConstraints(
    @IntRange(from = 0) public val minWidth: Int = 0,
    @IntRange(from = 0) public val maxWidth: Int = INFINITY,
    @IntRange(from = 0) public val minHeight: Int = 0,
    @IntRange(from = 0) public val maxHeight: Int = INFINITY,
    @IntRange(from = 0) public val minDepth: Int = 0,
    @IntRange(from = 0) public val maxDepth: Int = INFINITY,
)
```

Defines constraints for a 3D volume, specifying minimum and maximum values for width, height, and
depth.

This class is similar in concept to [androidx.compose.ui.unit.Constraints](/jetpack-compose/androidx.compose.ui/ui-unit/classes/Constraints), but adapted for 3D
volumes.

## Functions

<h2 id="copy-minwidth-maxwidth-minheight-maxheight-mindepth-maxdepth">copy</h2>

```kotlin
public fun copy(
        minWidth: Int = this.minWidth,
        maxWidth: Int = this.maxWidth,
        minHeight: Int = this.minHeight,
        maxHeight: Int = this.maxHeight,
        minDepth: Int = this.minDepth,
        maxDepth: Int = this.maxDepth,
    ): VolumeConstraints
```

Creates a copy of this [VolumeConstraints](/jetpack-compose/androidx.xr.compose/compose/classes/VolumeConstraints) object with modifications to its properties.

#### Parameters

| | |
| --- | --- |
| minWidth | the minimum allowed width in the new constraints. |
| maxWidth | the maximum allowed width in the new constraints. |
| minHeight | the minimum allowed height in the new constraints. |
| maxHeight | the maximum allowed height in the new constraints. |
| minDepth | the minimum allowed depth in the new constraints. |
| maxDepth | the maximum allowed depth in the new constraints. |

#### Returns

| | |
| --- | --- |
|  | a new [VolumeConstraints](/jetpack-compose/androidx.xr.compose/compose/classes/VolumeConstraints) object with the specified modifications. |

## Companion Object

#### Properties

<div class='sourceset sourceset-android'>Android</div>

```kotlin
public const val INFINITY: Int
```

Represents an unbounded (infinite) constraint value.