init(eye:target:up:)
Creates a rotation structure that’s the look-at direction from a position to a target.
Declaration
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.