---
title: "mat2f64T: constant in Types, TypeShade API reference"
description: "mat2f64T, a constant in Types. A 2×2 emulated-double matrix, logically mat2x2<f64>."
url: https://typeshade.dev/api/mat2f64t/
language: en
---

# `mat2f64T`

Constant in Types

A 2×2 emulated-double matrix, logically `mat2x2<f64>`.

`import { mat2f64T } from 'typeshade/core/ir'`

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

## Syntax

```ts
const mat2f64T: { readonly kind: "mat"; readonly cols: 2; readonly rows: 2; readonly elem: "f64"; }
```

## Description

Before emit it is rewritten into a struct of two [`vec2f64T`](https://typeshade.dev/api/vec2f64t/) columns, and [`mulMat64`](https://typeshade.dev/api/mulmat64/), [`transformMat64`](https://typeshade.dev/api/transformmat64/) and [`transpose64`](https://typeshade.dev/api/transpose64/) on it compose the scalar double-double error-free transforms the same way `length` and `dot` on [`vec2f64T`](https://typeshade.dev/api/vec2f64t/) do.

## See also

- [`vec2f64T`](https://typeshade.dev/api/vec2f64t/)
- [`mulMat64`](https://typeshade.dev/api/mulmat64/)
- [`transformMat64`](https://typeshade.dev/api/transformmat64/)
- [`transpose64`](https://typeshade.dev/api/transpose64/)

## Source

[`src/core/ir/types/f64-types.ts`, line 92](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/types/f64-types.ts#L92), at commit af54ddad5
