---
title: "vec2f64: type in the TypeShade language reference"
description: "vec2f64, a type in the TypeShade language reference. A two-component vector of f64."
url: https://typeshade.dev/reference/types/vec2f64/
language: en
---

# `vec2f64`

Type

A two-component vector of `f64`.

The signature, the sentence and any message are the compiler's own text at commit af54ddad5.

## Syntax

```ts
interface vec2f64 {
  readonly [vec64Tag]: 2
  0: f64
  1: f64
  x: f64
  y: f64
  r: f64
  g: f64
  …
}
```

The `…` line stands for 56 more members, the swizzles. A swizzle reads two to four components as a new vector of the same element type. The components come in any order and may repeat, and their letters come from one set, `xyzw` or `rgba`.

## Examples

- [`gallery/fp64-burning-ship-twin/fp64-burning-ship-twin.shade.ts`](https://typeshade.dev/guide/examples/fp64-burning-ship-twin/)
- [`gallery/fp64-checker-plane-twin/fp64-checker-plane-twin.shade.ts`](https://typeshade.dev/guide/examples/fp64-checker-plane-twin/)
- [`gallery/fp64-julia-twin/fp64-julia-twin.shade.ts`](https://typeshade.dev/guide/examples/fp64-julia-twin/)
- [`gallery/fp64-loran-twin/fp64-loran-twin.shade.ts`](https://typeshade.dev/guide/examples/fp64-loran-twin/)
- [`gallery/fp64-mandelbrot-de-twin/fp64-mandelbrot-de-twin.shade.ts`](https://typeshade.dev/guide/examples/fp64-mandelbrot-de-twin/)
- [`gallery/fp64-newton-twin/fp64-newton-twin.shade.ts`](https://typeshade.dev/guide/examples/fp64-newton-twin/)
- [`gallery/fp64-rtc-twin/fp64-rtc-twin.shade.ts`](https://typeshade.dev/guide/examples/fp64-rtc-twin/)

## See also

- [Types](https://typeshade.dev/reference/types/)
- [`vec2f64()` in `typeshade/core/ir`](https://typeshade.dev/api/vec2f64/)
