# shz_xmtrx_set_scale

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

```c
SHZ_INLINE void shz_xmtrx_set_scale(float x, float y, float z) SHZ_NOEXCEPT;
```

Sets only the inner 3x3 submatrix of XMTRX to be a scaling matrix.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `x` | `float` |  |
| `y` | `float` |  |
| `z` | `float` |  |

## Returns

Nothing (`void`).

## Availability

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