scale-matrix4 ( factors -- matrix )


Vocabulary
math.matrices

Inputs and outputs
factorsan object
matrixan object


Definition


:: scale-matrix4 ( factors -- matrix )
factors >scale-factors :> ( x y z ) {
{ x 0.0 0.0 0.0 }
{ 0.0 y 0.0 0.0 }
{ 0.0 0.0 z 0.0 }
{ 0.0 0.0 0.0 1.0 }
} ;