---
title: "DpVolumeOffset"
description: "Represents the offset of an object in 3D space."
type: "class"
lastmod: "2026-05-08T01:17:01.380297Z"
---
## API Reference

> Source set: Android

```kotlin
public class DpVolumeOffset(
    public val x: Dp = 0.dp,
    public val y: Dp = 0.dp,
    public val z: Dp = 0.dp,
)
```

Represents the offset of an object in 3D space.

## Companion Object

#### Properties

> Source set: Android

```kotlin
public val Zero: DpVolumeOffset
```

A [DpVolumeOffset](/jetpack-compose/androidx.xr.compose/compose/classes/DpVolumeOffset) with all offsets set to 0.
