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

# `mat2x4`

Type in Runtime

A `mat2x4`, 2 columns of 4 rows, as a host value: a readonly tuple of its 8 components, column-major.

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

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

## Syntax

```ts
type mat2x4 = readonly [f32, f32, f32, f32, f32, f32, f32, f32] & {
  readonly [tag]?: 'mat2x4';
};
```

## Source

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