# shz_xmtrx_transform_vec4

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

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

```c
SHZ_INLINE shz_vec4_t shz_xmtrx_transform_vec4(shz_vec4_t vec) SHZ_NOEXCEPT;
```

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

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `vec` | `shz_vec4_t` |  |

## Returns

`shz_vec4_t`

## Availability

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