---
title: "mat2: type in Runtime, TypeShade API reference"
description: "mat2, a type in Runtime. mat2, the short spelling of mat2x2, the same type."
url: https://typeshade.dev/api/mat2/
language: en
---

# `mat2`

Type in Runtime

`mat2`, the short spelling of `mat2x2`, the same type.

`import type { mat2 } from 'typeshade/runtime'`

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

## Syntax

```ts
type mat2<T extends f32 | f64 = f32> = mat2x2<T>;
```

## See also

- [`mat2x2`](https://typeshade.dev/api/mat2x2/)

## Source

[`src/runtime/host-types.ts`, line 161](https://github.com/typeshade/typeshade/blob/af54ddad5/src/runtime/host-types.ts#L161), at commit af54ddad5
