Handbook
Glossary
<skew-matrix4> ( theta -- matrix )
Extra matrix operations
Prev:
<scale-matrix4> ( factors -- matrix )
Next:
<translation-matrix4> ( offset -- matrix )
Vocabulary
math
.
matrices
.
extras
Inputs
theta
an
object
Outputs
matrix
an
object
Definition
USING:
math.functions
;
IN:
math.matrices.extras
::
<skew-matrix4>
( theta -- matrix )
theta
tan
:>
zf
{
{
1.0 0.0 0.0 0.0
}
{
0.0 1.0 0.0 0.0
}
{
0.0 zf 1.0 0.0
}
{
0.0 0.0 0.0 1.0
}
}
;