# RelativePosition

Artifact: [androidx.constraintlayout:constraintlayout-compose](https://developer.android.com/jetpack/androidx/releases/constraintlayout) [View Source](https://cs.android.com/search?q=file:androidx/constraintlayout/compose/TransitionScope.kt+class:androidx.constraintlayout.compose.RelativePosition) Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)


```
@ExperimentalMotionApi
class RelativePosition
```

<br />

*** ** * ** ***

Relative coordinate space in which KeyPositions are applied.

## Summary

| ### Public companion properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/RelativePosition` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/RelativePosition#Delta()` The default coordinate space, defined between the ending and starting point of the motion. |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/RelativePosition` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/RelativePosition#Parent()` The coordinate space defined within the parent layout bounds (the MotionLayout parent). |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/RelativePosition` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/RelativePosition#Path()` The coordinate space defined between the ending and starting point of the motion. |

| ### Public properties |
|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/RelativePosition#name()` |

## Public companion properties

### Delta

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
val Delta: RelativePosition
```

The default coordinate space, defined between the ending and starting point of the motion. Aligned to the layout's X and Y axis.

### Parent

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
val Parent: RelativePosition
```

The coordinate space defined within the parent layout bounds (the MotionLayout parent).

### Path

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
val Path: RelativePosition
```

The coordinate space defined between the ending and starting point of the motion. Aligned perpendicularly to the shortest line between the start/end.

## Public properties

### name

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
open val name: String
```