---
title: "rotated(by:)"
framework: spatial
role: symbol
role_heading: Instance Method
path: "spatial/scaledpose3dfloat/rotated(by:)-8d0z0"
---

# rotated(by:)

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

## Declaration

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

## Parameters

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

## Discussion

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