---
title: "rotate(by:)"
framework: spatial
role: symbol
role_heading: Instance Method
path: "spatial/rotatable3dprotocol/rotate(by:)-7waub"
---

# rotate(by:)

Rotates the entity rotated by the specified rotation around the origin.

## Declaration

```swift
mutating func rotate(by rotation: Self.Rotation)
```

## Parameters

- `rotation`: The rotation.
