Handbook
Glossary
demo-world-frustum ( world -- -x x -y y near far )
Vocabulary
opengl
.
demo-support
Inputs
world
an
object
Outputs
-x
an
object
x
an
object
-y
an
object
y
an
object
near
an
object
far
an
object
Definition
USING:
kernel
math
math.vectors
sequences
;
IN:
opengl.demo-support
:
demo-world-frustum
( world -- -x x -y y near far )
[
near-plane
]
[
far-plane
]
[
fov-ratio
]
tri
[
nip
swap
FOV
/
v*n
first2
[
-+
]
bi@
]
2keepd
;