# shz_quat_from_look_axis

Source: https://sh4zam.com/api/quat/shz_quat_from_look_axis/

```c
shz_quat_t shz_quat_from_look_axis(shz_vec3_t forward, shz_vec3_t up) SHZ_NOEXCEPT;
```

Creates a quaternion looking in the given direction with the given reference direction.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `forward` | `shz_vec3_t` |  |
| `up` | `shz_vec3_t` |  |

## Returns

`shz_quat_t`

## Availability

- **C++ equivalent:** [`shz::quat::from_look_axis`](https://sh4zam.com/api/cpp/quat/#from_look_axis)
- **Type-generic form:** none
- **Back-ends:** SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_quat.h:116`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_quat.h#L116)
- **Module:** [Quaternion](https://sh4zam.com/api/quat/), section "Initialization"
