# shz_xmtrx_transform_vec3

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

> Returns the 3D vector that is the result of transforming vec by XMTRX

```c
SHZ_INLINE shz_vec3_t shz_xmtrx_transform_vec3(shz_vec3_t vec) SHZ_NOEXCEPT;
```

Returns the 3D vector that is the result of transforming `vec` by XMTRX.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `vec` | `shz_vec3_t` |  |

## Returns

`shz_vec3_t`

## Availability

- **C++ equivalent:** none (call the C function from C++)
- **Type-generic form:** none
- **Back-ends:** SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_xmtrx.h:771`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_xmtrx.h#L771)
- **Module:** [XMTRX](https://sh4zam.com/api/xmtrx/), section "Transformations"
