mat4f64()
Function in Builtins
An emulated-double mat4x4<f64> constructor, column-major, the 4×4 sibling of mat2f64; that entry has the column-argument convention and the transform helpers.
import { mat4f64 } from 'typeshade'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
const mat4f64: ( cols_0: Mat64Col<4>, cols_1: Mat64Col<4>, cols_2: Mat64Col<4>, cols_3: Mat64Col<4>,) => Node<"mat4x4<f64>">Parameters
...cols[Mat64Col<4>, Mat64Col<4>, Mat64Col<4>, Mat64Col<4>]
Return value
Node<'mat4x4<f64>'>
Examples
Example
import { mat4f64, vec4f64 } from 'typeshade'
const m = mat4f64( vec4f64(1, 0, 0, 0), vec4f64(0, 1, 0, 0), vec4f64(0, 0, 1, 0), vec4f64(0, 0, 0, 1),)See also
Source
src/core/ir/node.ts, line 2713, at commit 26de7be8