---
title: "getRotation"
description: "Returns the rotation of the node relative to its parent layout node."
type: "function"
lastmod: "2026-06-18T10:32:52.437791Z"
---
## API Reference

### getRotation

> Source set: Android

```kotlin
public fun SubspaceSemanticsNodeInteraction.getRotation(): Quaternion
```

Returns the rotation of the node relative to its parent layout node.

Additional assertions with custom tolerances may be performed on the individual values.
