Handbook
Glossary
p-matrix ( dim: float-4 fov: float near: float far: float -- matrix: matrix4 )
Vocabulary
benchmark
.
3d-matrix-vector
Inputs
dim
a
float-4
fov
a
float
near
a
float
far
a
float
Outputs
matrix
a
matrix4
Definition
USING:
kernel
math.matrices.simd
math.vectors
typed
;
IN:
benchmark.3d-matrix-vector
TYPED::
p-matrix
( dim: float-4 fov: float near: float far: float -- matrix: matrix4 )
dim
dup
v2min
v/
fov
v*n
near
v*n
near far
frustum-matrix4
;