# shz_xmtrx_get_scale

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

```c
SHZ_INLINE shz_vec3_t shz_xmtrx_get_scale(void) SHZ_NOEXCEPT;
```

Returns the scaling components from the inner 3x3 matrix of XMTRX, as a 3D vector.

## Parameters

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

## Returns

`shz_vec3_t`

## Warnings

- This routine assumes XMTRX is a standard TRS-style transform matrix, without shearing or reflection.

## Availability

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