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()
The signature, the description and the examples come from the compiler's own source at commit af54ddad5.
Syntax
const vec4f64: (...a: Vec64Arg[]) => Node<"vec4<f64>">Parameters
...aVec64Arg[]
Return value
Node<'vec4<f64>'>
Examples
Example
import { vec4f64 } from 'typeshade/core/ir'
const p = vec4f64(1e8 + 0.5, 2, 3, 4) // Node<'vec4<f64>'>In the guide
See also
Source
src/core/ir/node.ts, line 2376, at commit af54ddad5