---
title: "vec2f64T: constant in Types, TypeShade API reference"
description: "vec2f64T, a constant in Types. A 2-component emulated-double vector, logically vec2<f64>."
url: https://typeshade.dev/api/vec2f64t/
language: en
---

# `vec2f64T`

Constant in Types

A 2-component emulated-double vector, logically `vec2<f64>`.

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

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

## Syntax

```ts
const vec2f64T: { readonly kind: "vec64"; readonly n: 2; }
```

## Description

Before emit it is rewritten into a struct of two `vec2<f32>` planes, `hi` and `lo`, and componentwise arithmetic runs on the whole planes at once. The usual carrier for a position in world units that must survive far more than `f32`’s roughly 7 significant digits; see [`f64T`](https://typeshade.dev/api/f64t/) for what is emulated and what it costs.

## See also

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

## Source

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