vec2f64T
On this page

vec2f64T

Constant in Types

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

import { vec2f64T } from 'typeshade'

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

Syntax

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 for what is emulated and what it costs.

In the guide

See also

Source

src/core/ir/types.ts, line 385, at commit 26de7be8

Edit this page Report a problem