transformMat4
On this page

transformMat4()

Function in Builtins

mat4x4<f32> × vec4<f32> → vec4<f32>: the matrix-vector product, as in a model-view-projection transform.

import { transformMat4 } from 'typeshade'

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

Syntax

const transformMat4: (
m: ReadonlyNode<"mat4x4<f32>">,
v: ReadonlyNode<"vec4<f32>">,
) => Node<"vec4<f32>">

Parameters

m ReadonlyNode<'mat4x4<f32>'>
v ReadonlyNode<'vec4<f32>'>

Return value

Node<'vec4<f32>'>

Description

The generic .mul rejects a matrix operand, since a matrix is neither a scalar nor a matching vector; this is the explicit form.

Source

src/core/ir/node.ts, line 2751, at commit 26de7be8

Edit this page Report a problem