transformMat4()
함수, 내장 함수 분류
mat4x4<f32> × vec4<f32> → vec4<f32>: the matrix-vector product, as in a model-view-projection transform.
import { transformMat4 } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
const transformMat4: ( m: ReadonlyNode<"mat4x4<f32>">, v: ReadonlyNode<"vec4<f32>">,) => Node<"vec4<f32>">매개변수
mReadonlyNode<'mat4x4<f32>'>vReadonlyNode<'vec4<f32>'>
반환값
Node<'vec4<f32>'>
설명
The generic .mul rejects a matrix operand, since a matrix
is neither a scalar nor a matching vector; this is the explicit form.
소스
src/core/ir/node.ts, 2751행, 커밋 c66579bf 기준