Handbook
Glossary
wasd-mv-inv-matrix ( world -- matrix )
Vocabulary
gpu
.
util
.
wasd
Inputs
world
an
object
Outputs
matrix
an
object
Definition
USING:
accessors
kernel
math.matrices
math.matrices.extras
;
IN:
gpu.util.wasd
:
wasd-mv-inv-matrix
( world -- matrix )
[
location>>
<translation-matrix4>
]
[
{
0.0 -1.0 0.0
}
swap
yaw>>
<rotation-matrix4>
]
[
{
-1.0 0.0 0.0
}
swap
pitch>>
<rotation-matrix4>
]
tri
mdot
mdot
;