Translate a 3D matrix

Translate a 3D matrix
 1# This example translates a 3D matrix to a 3D vector (10, 20, 30)
 2
 3# Create a local variable for the impact.creator ThreeD object
 4three_d  = impact.creator.three_d()
 5
 6# Create a default 3D matrix (Identity matrix)
 7matrix = three_d.matrix3_d()
 8
 9# Create a translation vector
10vector = three_d.vector3_d(10,20,30)
11
12# Translate the matrix by (10, 20, 30)
13matrix.translate(vector)
14
15# Create a local variable for the output toolbox
16ot = impact.gui.output_toolbox
17
18# Print the translated matrix to output toolbox
19ot.add(matrix.to_string())
20