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

# rotation(to:)

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

## Declaration

```swift
func rotation(to other: Vector3DFloat) -> Rotation3DFloat
```
