You are on page 1of 2

OUTPUT

enter the values of x,y,z


1
2
3

input matrix
1 2 3 0

Press
1.To scale
2.To translate
3.To rotate
4.Exit
1

enter the coordinates for scaling


1
2
3

scaling matrix
1 0 0 0
0 2 0 0
0 0 3 0
0 0 0 1

resultant matrix
1 4 9 0

input matrix
1 2 3 0

Press
1.To scale
2.To translate
3.To rotate
4.Exit
2

enter the coordinates for translation


2
3
1

Translation matrix
1 0 0 0
0 1 0 0
0 0 1 0
2 3 1 1
resultant matrix
1 2 3 0

input matrix
1 2 3 0

Press
1.To scale
2.To translate
3.To rotate
4.Exit

press 1.rotation about x axis


2.rotation about y axis
3.rotation about z axis1

Rotation matrix 1 0 0 0
0 0 0 0
0 0 0 0
0 0 0 1

resultant matrix
1.000000 0.000000 0.000000 0.000000

input matrix
1 2 3 0

Press
1.To scale
2.To translate
3.To rotate
4.Exit

enter the coordinates for scaling

You might also like