mat4f64
이 페이지에서

mat4f64()

함수, 내장 함수 분류

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'

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

구문

const mat4f64: (
cols_0: Mat64Col<4>,
cols_1: Mat64Col<4>,
cols_2: Mat64Col<4>,
cols_3: Mat64Col<4>,
) => Node<"mat4x4<f64>">

매개변수

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

반환값

Node<'mat4x4<f64>'>

예제

예제

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),
)

함께 보기

소스

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

이 페이지 편집 문제 보고