Float64Key
이 페이지에서

Float64Key

타입, 타입 분류

The emulated-double keys, 'f64' and the f64 vectors.

import type { Float64Key } from 'typeshade'

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

구문

type Float64Key = 'f64' | `vec${number}<f64>`;

설명

Only the builtins with an f64 emulation accept them: abs, floor, fract, sin, cos, min, max, mix, vector normalize and scalar sqrt. Every other builtin bounds its key to FloatKey, so an f64 argument to one is a tsc error at the authoring site.

함께 보기

소스

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

이 페이지 편집 문제 보고