---
title: "rotated(by:)"
framework: spatial
role: symbol
role_heading: Instance Method
path: "spatial/pose3dfloat/rotated(by:)-6s426"
---

# rotated(by:)

Returns a pose with a rotation that’s rotated by the specified quaternion.

## Declaration

```swift
func rotated(by quaternion: simd_quatf) -> Pose3DFloat
```

## Parameters

- `quaternion`: The quaternion that defines the rotation.

## Discussion

Discussion Returns A pose with a rotation that’s rotated by the specified quaternion.
