make-ortho-matrix ( left right bottom top near far -- floats )


Vocabulary
ui.render

Inputs
leftan object
rightan object
bottoman object
topan object
nearan object
faran object


Outputs
floatsan object


Definition


:: make-ortho-matrix
( left right bottom top near far -- floats )
right left - :> width top bottom - :> height far near -
:> depth 2.0 width / :> a1 2.0 height / :> b2 -2.0 depth /
:> c3 right left + width / neg :> tx top bottom + height /
neg :> ty far near + depth / neg :> tz [
a1 0.0 0.0 0.0 0.0 b2 0.0 0.0 0.0 0.0 c3 0.0 tx ty tz
1.0
] float-array{ } output>sequence ;