---
title: "init(eye:target:up:)"
framework: spatial
role: symbol
role_heading: Initializer
path: "spatial/rotation3d/init(eye:target:up:)"
---

# init(eye:target:up:)

Creates a rotation structure that’s the look-at direction from a position to a target.

## Declaration

```swift
init(eye: Point3D, target: Point3D, up: Vector3D = Vector3D(x: 0, y: 1, z: 0))
```

## Parameters

- `eye`: The eye position.
- `target`: The target position.
- `up`: The up direction.

## See Also

### Deprecated symbols

- [init(_:_:_:order:)](spatial/eulerangles/init(_:_:_:order:).md)
- [init(axis:angle:)](spatial/rotation3d/init(axis:angle:).md)
- [init(quaternion:)](spatial/rotation3d/init(quaternion:)-6ajmn.md)
- [zero](spatial/rotation3d/zero.md)
- [isZero](spatial/rotation3d/iszero.md)
