---
title: "vec4f64(): IR builder function in typeshade/core/ir"
description: "vec4f64, an IR builder function in typeshade/core/ir. An emulated-double vec4<f64> constructor, the four-component sibling of vec2f64; that entry has the splat…"
url: https://typeshade.dev/api/vec4f64/
language: en
---

# `vec4f64()`

Function in Builtins

An emulated-double `vec4<f64>` constructor, the four-component sibling of `vec2f64`; that entry has the splat, split and widen rules every vecNf64 constructor shares.

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

This export returns an IR node. A `"use typeshade"` file calls the builtin itself: [`vec4f64()`](https://typeshade.dev/reference/functions/vec4f64/)

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

## Syntax

```ts
const vec4f64: (...a: Vec64Arg[]) => Node<"vec4<f64>">
```

## Parameters

**`...a` `Vec64Arg[]`**

## Return value

`Node<'vec4<f64>'>`

## Examples

### Example

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

const p = vec4f64(1e8 + 0.5, 2, 3, 4)  // Node<'vec4<f64>'>
```

## In the guide

- [fp64](https://typeshade.dev/guide/internals/fp64/)

## See also

- [`vec4f64()`](https://typeshade.dev/reference/functions/vec4f64/)
- [`vec2f64`](https://typeshade.dev/api/vec2f64/)

## Source

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