---
title: "rotated(by:around:)"
framework: spatial
role: symbol
role_heading: Instance Method
path: "spatial/ray3d/rotated(by:around:)-7h43"
---

# rotated(by:around:)

Returns a ray that’s rotated by the specified rotation around a specified pivot.

## Declaration

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

## Parameters

- `rotation`: The rotation.
- `pivot`: The center of the rotation.

## See Also

### Transforming a 3D ray structure

- [apply(_:)](spatial/ray3d/apply(_:).md)
- [applying(_:)](spatial/ray3d/applying(_:)-337n0.md)
- [applying(_:)](spatial/ray3d/applying(_:)-2aom9.md)
- [applying(_:)](spatial/ray3d/applying(_:)-34rqi.md)
- [unapplying(_:)](spatial/ray3d/unapplying(_:)-7bc37.md)
- [unapplying(_:)](spatial/ray3d/unapplying(_:)-6tj2w.md)
- [unapplying(_:)](spatial/ray3d/unapplying(_:)-928o9.md)
- [rotated(by:)](spatial/ray3d/rotated(by:)-qxp0.md)
- [rotated(by:)](spatial/ray3d/rotated(by:)-81glv.md)
- [rotated(by:around:)](spatial/ray3d/rotated(by:around:)-uzon.md)
- [applying(_:)](spatial/ray3d/applying(_:)-6hfqw.md)
- [unapplying(_:)](spatial/ray3d/unapplying(_:)-9x164.md)
