---
title: "rotated(by:around:)"
framework: spatial
role: symbol
role_heading: Instance Method
path: "spatial/rect3dfloat/rotated(by:around:)-9yw64"
---

# rotated(by:around:)

## Declaration

```swift
func rotated(by quaternion: simd_quatf, around pivot: Point3DFloat) -> Rect3DFloat
```

## Parameters

- `quaternion`: The quaternion that defines the rotation.
- `pivot`: The center of rotation.

## Return Value

Return Value A point that’s rotated by the specified rotation.

## Discussion

Discussion Returns a rectangle that’s rotated by a quaternion around a specified pivot.
