---
title: "mat4f64(): IR builder function in typeshade/core/ir"
description: "mat4f64, an IR builder function in typeshade/core/ir. An emulated-double mat4x4<f64> constructor, column-major, the 4×4 sibling of mat2f64…"
url: https://typeshade.dev/api/mat4f64/
language: en
---

# `mat4f64()`

Function in Builtins

An emulated-double `mat4x4<f64>` constructor, column-major, the 4×4 sibling of mat2f64; that entry has the column-argument convention and the transform helpers.

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

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

## Syntax

```ts
const mat4f64: (
  cols_0: Mat64Col<4>,
  cols_1: Mat64Col<4>,
  cols_2: Mat64Col<4>,
  cols_3: Mat64Col<4>,
) => Node<"mat4x4<f64>">
```

## Parameters

**`...cols` `[Mat64Col<4>, Mat64Col<4>, Mat64Col<4>, Mat64Col<4>]`**

## Return value

`Node<'mat4x4<f64>'>`

## Examples

### Example

```ts
import { mat4f64, vec4f64 } from 'typeshade/core/ir'

const m = mat4f64(
  vec4f64(1, 0, 0, 0),
  vec4f64(0, 1, 0, 0),
  vec4f64(0, 0, 1, 0),
  vec4f64(0, 0, 0, 1),
)
```

## See also

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

## Source

[`src/core/ir/node.ts`, line 2427](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/node.ts#L2427), at commit af54ddad5
