<ortho-matrix4> ( factors -- matrix )
Extra matrix operations

Prev:<frustum-matrix4> ( xy-dim near far -- matrix )
Next:<rotation-matrix3> ( axis theta -- matrix )


Vocabulary
math.matrices.extras

Inputs
factorsa sequence


Outputs
matrixa matrix


Word description
Create a <scale-matrix4>, with the scale factors inverted.

Notes
Only the first three values in factors are used.
This word is the inverse variant of <scale-matrix4>.


Examples
USING: math.matrices.extras prettyprint ; { -9.3 100 1/2 } <ortho-matrix4> .
{ { -0.1075268817204301 0.0 0.0 0.0 } { 0.0 1/100 0.0 0.0 } { 0.0 0.0 2 0.0 } { 0.0 0.0 0.0 1.0 } }


Definition