Inverse a 3D matrix¶
Inverse a 3D matrix¶
1# This example converts a 3D matrix to an Inverse matrix
2# and prints the matrix to output screen
3
4# Create a local variable for the impact.creator ThreeD object
5three_d = impact.creator.three_d()
6
7# Create a default 3D matrix (Identity matrix)
8matrix = three_d.matrix3_d()
9
10# Convert to inverse matrix
11call(matrix.inverse())
12
13# Create a local variable for the output toolbox
14ot = impact.gui.output_toolbox
15
16# Print the inverse matrix to output toolbox
17ot.add(matrix.to_string())