<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [Matrix4](./server.matrix4.md) &gt; [lookAt](./server.matrix4.lookat.md)

## Matrix4.lookAt() method

Sets the current matrix to a look-at matrix with the given eye, center, and up vectors.

**Signature:**

```typescript
lookAt(eye: Vector3, center: Vector3, up: Vector3): Matrix4;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

eye


</td><td>

[Vector3](./server.vector3.md)


</td><td>

The eye vector of the camera.


</td></tr>
<tr><td>

center


</td><td>

[Vector3](./server.vector3.md)


</td><td>

The center vector of the camera.


</td></tr>
<tr><td>

up


</td><td>

[Vector3](./server.vector3.md)


</td><td>

The up vector of the camera.


</td></tr>
</tbody></table>
**Returns:**

[Matrix4](./server.matrix4.md)

The current matrix.

