---
title: "vec3: type in Runtime, TypeShade API reference"
description: "vec3, a type in Runtime. A vec3, the vector of three f32, as a host value: a readonly tuple of three f32."
url: https://typeshade.dev/api/vec3-type/
language: en
---

# `vec3`

Type in Runtime

A `vec3`, the vector of three `f32`, as a host value: a readonly tuple of three `f32`.

`import type { vec3 } from 'typeshade/runtime'`

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

## Syntax

```ts
type vec3 = readonly [f32, f32, f32];
```

## In the guide

- [Language guide](https://typeshade.dev/guide/internals/)
- [Values and mutation](https://typeshade.dev/guide/internals/values-and-mutation/)
- [fp64](https://typeshade.dev/guide/internals/fp64/)

## Source

[`src/runtime/host-types.ts`, line 62](https://github.com/typeshade/typeshade/blob/af54ddad5/src/runtime/host-types.ts#L62), at commit af54ddad5
