# shz_xmtrx_to_quat

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

```c
shz_quat_t shz_xmtrx_to_quat(void) SHZ_NOEXCEPT;
```

Constructs a quaternion from the 3D rotation matrix within XMTRX.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `` | `void` |  |

## Returns

`shz_quat_t`

## Availability

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