Factor Documentation

Home

Glossary

Search
factorcode.org
frustummatrix4 ( xydim near far  matrix )
Vocabulary
math.matrices
Inputs and outputs
xydim
an
object
near
an
object
far
an
object
matrix
an
object
Definition
USING:
locals
math
sequences
;
IN:
math.matrices
::
frustummatrix4
( xydim near far  matrix )
xydim
first2
:>
( x y ) near x
/f
:>
xf near y
/f
:>
yf near far
+
near far

/f
:>
zf 2 near far
*
*
near far

/f
:>
wf
{
{
xf 0.0 0.0 0.0
}
{
0.0 yf 0.0 0.0
}
{
0.0 0.0 zf wf
}
{
0.0 0.0 1.0 0.0
}
}
;