---
title: "mat4x4: type in Runtime, TypeShade API reference"
description: "mat4x4, a type in Runtime. A mat4x4 as a host value: a readonly tuple of its 16 components, column-major."
url: https://typeshade.dev/api/mat4x4/
language: en
---

# `mat4x4`

Type in Runtime

A `mat4x4` as a host value: a readonly tuple of its 16 components, column-major.

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

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

## Syntax

```ts
type mat4x4<T extends f32 | f64 = f32> = readonly [
  T,
  T,
  T,
  T,
  T,
  T,
  T,
  T,
  T,
  T,
  T,
  T,
  T,
  T,
  T,
  T,
] & { readonly [tag]?: 'mat4x4' };
```

## Description

`mat4x4<f64>` holds `f64` components ([Rule 4.4](https://typeshade.dev/reference/rules/4-4/)).

## Source

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