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

# `mat4`

Type in Runtime

`mat4`, the short spelling of `mat4x4`, the same type.

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

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

## Syntax

```ts
type mat4<T extends f32 | f64 = f32> = mat4x4<T>;
```

## In the guide

- [Language guide](https://typeshade.dev/guide/internals/)
- [Values and mutation](https://typeshade.dev/guide/internals/values-and-mutation/)

## See also

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

## Source

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