---
title: "rotation(to:)"
framework: spatial
role: symbol
role_heading: Instance Method
path: "spatial/vector3d/rotation(to:)"
---

# rotation(to:)

Returns the rotation from the normalized first vector to the normalized second vector.

## Declaration

```swift
func rotation(to other: Vector3D) -> Rotation3D
```
