translation-matrix4 ( offset -- matrix )


Vocabulary
math.matrices

Inputs and outputs
offsetan object
matrixan object


Definition


:: translation-matrix4 ( offset -- matrix )
offset first3 :> ( x y z ) {
{ 1.0 0.0 0.0 x }
{ 0.0 1.0 0.0 y }
{ 0.0 0.0 1.0 z }
{ 0.0 0.0 0.0 1.0 }
} ;