---
title: "rotated(by:around:)"
framework: spatial
role: symbol
role_heading: Instance Method
path: "spatial/rect3d/rotated(by:around:)-3ih62"
---

# rotated(by:around:)

Returns a rectangle that results from applying the specified rotation around a pivot point.

## Declaration

```swift
func rotated(by rotation: Rotation3D, around pivot: Point3D) -> Rect3D
```

## Parameters

- `rotation`: The rotation structure that defines the rotation’s angle and axis.
- `pivot`: The point structure that defines the rotation pivot point.

## Return Value

Return Value The rectangle that results from applying the specified rotation around a pivot point.

## See Also

### Transforming a 3D rectangle structure

- [applying(_:)](spatial/rect3d/applying(_:)-3qdiy.md)
- [applying(_:)](spatial/rect3d/applying(_:)-5hnif.md)
- [applying(_:)](spatial/rect3d/applying(_:)-5hnif.md)
- [rotated(by:around:)](spatial/rect3d/rotated(by:around:)-8g1c9.md)
- [scaledBy(x:y:z:)](spatial/rect3d/scaledby(x:y:z:).md)
- [sheared(_:)](spatial/rect3d/sheared(_:).md)
- [unapplying(_:)](spatial/rect3d/unapplying(_:)-1j6g7.md)
- [unapplying(_:)](spatial/rect3d/unapplying(_:)-1pbfn.md)
- [unapplying(_:)](spatial/rect3d/unapplying(_:)-2he5i.md)
- [unapplying(_:)](spatial/rect3d/unapplying(_:)-7eglq.md)
