---
title: "rotate(by:)"
framework: spatial
role: symbol
role_heading: Instance Method
path: "spatial/rotatable3d/rotate(by:)-1g3rl"
---

# rotate(by:)

Rotates the entity by an angle over an axis.

## Declaration

```swift
mutating func rotate(by rotation: Rotation3D)
```

## Parameters

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

## See Also

### Instance methods

- [rotate(by:)](spatial/rotatable3d/rotate(by:)-usrg.md)
- [rotated(by:)](spatial/rotatable3d/rotated(by:)-4gdqe.md)
- [rotated(by:)](spatial/rotatable3d/rotated(by:)-7bx4w.md)
