mat2f64
이 페이지에서

mat2f64()

함수, 내장 함수 분류

An emulated-double mat2x2<f64> constructor, column-major: one vec2<f64> argument per column, the same convention as WGSL's mat2x2.

import { mat2f64 } from 'typeshade'

시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.

구문

const mat2f64: (
cols_0: Mat64Col<2>,
cols_1: Mat64Col<2>,
) => Node<"mat2x2<f64>">

매개변수

...cols [Mat64Col<2>, Mat64Col<2>]

반환값

Node<'mat2x2<f64>'>

설명

Use transformMat64 and mulMat64 for the f64 matrix-vector and matrix-matrix products; the generic .mul rejects a matrix operand.

예제

예제

import { mat2f64, vec2f64 } from 'typeshade'
const m = mat2f64(vec2f64(1, 2), vec2f64(3, 4)) // Node<'mat2x2<f64>'>

함께 보기

소스

src/core/ir/node.ts, 2680행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고