---
title: "rotated(by:)"
framework: spatial
role: symbol
role_heading: Instance Method
path: "spatial/rotatable3dprotocol/rotated(by:)-3xjsw"
---

# rotated(by:)

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

## Declaration

```swift
func rotated(by rotation: Self.Rotation) -> Self
```

## Parameters

- `rotation`: The rotation.

## Discussion

Discussion Returns The rotated primitive.
