---
title: quaternion
framework: spatial
role: symbol
role_heading: Instance Property
path: spatial/rotation3d/quaternion
---

# quaternion

A quaternion that represents the rotation.

## Declaration

```swift
var quaternion: simd_quatd { get set }
```

## See Also

### Inspecting a 3D rotation’s properties

- [angle](spatial/rotation3d/angle.md)
- [axis](spatial/rotation3d/axis.md)
- [eulerAngles(order:)](spatial/rotation3d/eulerangles(order:).md)
- [EulerAngles](spatial/eulerangles.md)
- [vector](spatial/rotation3d/vector.md)
