init(position:target:up:)
Creates a rotation structure that represents the look-at direction from a position to a target.
Declaration
init(position: Point3D = Point3D(x: 0, y: 0, z: 0), target: Point3D, up: Vector3D = Vector3D(x: 0, y: 1, z: 0))Parameters
- position:
The eye position.
- target:
The target position.
- up:
The up direction.