# shz_mat2x2_t

Source: https://sh4zam.com/api/matrix/shz_mat2x2_t/

```c
typedef SHZ_ALIGNAS(8) struct shz_mat2x2 {
    union {
        float       elem[4];
        float       elem2D[2][2];
        shz_vec2_t  col[2];
    };
} shz_mat2x2_t;
```

Structure representing a 2x2 column-major matrix.

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `elem` | `float[4]` |  |
| `elem2D` | `float[2][2]` |  |
| `col` | `shz_vec2_t[2]` |  |

## Warnings

- This structure MUST be aligned on 8-byte boundaries!

## Availability

- **C++ equivalent:** none (usable from C++ as is)
- **Back-ends:** n/a (not a function)
- **Defined in:** [`sh4zam/shz_matrix.h:889`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_matrix.h#L889)
- **Module:** [Matrix](https://sh4zam.com/api/matrix/), section "Types"
