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

# `mat2x2`

Type in Runtime

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

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

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

## Syntax

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

## Description

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

## Source

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