# shz_xmtrx_lookat

Source: https://sh4zam.com/api/xmtrx/shz_xmtrx_lookat/

```c
SHZ_INLINE void shz_xmtrx_lookat(shz_vec3_t eye, shz_vec3_t center, shz_vec3_t up) SHZ_NOEXCEPT;
```

Applies the 3D "lookAt" matrix constructed with the given vector components onto XMTRX. Equivalent to gluLookAt().

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `eye` | `shz_vec3_t` |  |
| `center` | `shz_vec3_t` |  |
| `up` | `shz_vec3_t` |  |

## Returns

Nothing (`void`).

## Availability

- **C++ equivalent:** [`shz::xmtrx::lookat`](https://sh4zam.com/api/cpp/xmtrx/#lookat)
- **Type-generic form:** none
- **Back-ends:** SH4: dedicated SH4 implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_xmtrx.h:590`](https://github.com/gyrovorbis/sh4zam/blob/6b22b851ad9ca109049f956dbbbecf7c519c959f/include/sh4zam/shz_xmtrx.h#L590)
- **Module:** [XMTRX](https://sh4zam.com/api/xmtrx/), section "Apply Operation"
