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

# `mat3f64()`

Function in Builtins

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

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

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

## Syntax

```ts
const mat3f64: (
  cols_0: Mat64Col<3>,
  cols_1: Mat64Col<3>,
  cols_2: Mat64Col<3>,
) => Node<"mat3x3<f64>">
```

## Parameters

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

## Return value

`Node<'mat3x3<f64>'>`

## Examples

### Example

```ts
import { mat3f64, vec3f64 } from 'typeshade/core/ir'

const m = mat3f64(vec3f64(1, 0, 0), vec3f64(0, 1, 0), vec3f64(0, 0, 1))
```

## See also

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

## Source

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