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

# rotated(by:around:)

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

## Declaration

```swift
func rotated(by rotation: Rotation3DFloat, around pivot: Point3DFloat) -> Ray3DFloat
```

## Parameters

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