---
title: "rotated(by:)"
framework: spatial
role: symbol
role_heading: Instance Method
path: "spatial/vector3dfloat/rotated(by:)-7v04s"
---

# rotated(by:)

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

## Declaration

```swift
func rotated(by rotation: Rotation3DFloat) -> Vector3DFloat
```

## Parameters

- `rotation`: The rotation.

## Discussion

Discussion Returns The rotated vector.
