Previous Up Next

15.5.2  Finding the matrix of an isometry

The mkisom command finds the matrix of an isometry given the characteristic elements.

Examples

To obtain the matrix of the rotation about axis [−1,2,−1] of angle π, input:

mkisom([[-1,2,-1],pi],1)
     












2
3
2
3
1
3
2
3
1
3
2
3
1
3
2
3
2
3












          

To obtain the matrix of the symmetry with respect to O, input:

mkisom([pi],-1)
     



−100
0−10
00−1



          

To obtain the matrix of the symmetry with respect to the plane x+y+z=0, input:

mkisom([1,1,1],-1)
     












1
3
2
3
2
3
2
3
1
3
2
3
2
3
2
3
1
3












          

To obtain the matrix of the product of a rotation of axis [1,1,1] and angle π/3 and of a symmetry with respect to the plane x+y+z=0, input:

mkisom([[1,1,1],pi/3],-1)
     



0−10
00−1
−100



          

To obtain the matrix of the plane rotation of angle π/2, input:

mkisom(pi/2,1)
     


0−1
10


          

To obtain matrix of the plane symmetry with respect to the line of equation x+2y=0, input:

mkisom([1,2],-1)
     








3
5
4
5
4
5
3
5








          

Previous Up Next