Question: Question 1 Write a java program that achieves the rotation of a unit cube about an arbitrary fixed point ( page 7 9 - first

Question 1
Write a java program that achieves the rotation of a unit cube about an arbitrary
fixed point (page 79- first special case of 3D rotation). Produce only text output for
this program (similar to Rota3DTest demo program shown in class). Output should
display the desired angle of rotation, principle axis of rotation, and the arbitrary
point used for rotating the unit cube. Output should also display the vertices of the
unit cube along with their co-ordinate values before and after the 3D rotation.
The program should take 5 command-line arguments for the three customizable
parameters - arbitrary point A (a1, a2, a3), desired angle of rotation alpha, and the
principle axis of rotation (x_(a)xis, y_(a)xis, or z_(a)xis). In other words, after compiling
your program, you may run it by typing the following as an example:
java Rota3DCube 22245 y_(a)xis
where a1=2,a2=2,a3=2 alpha =45 degrees, and y _()axis is the principle axis
of rotation.
Note:
The initial vertices of the cube before rotation should be -
[0,1,1],[1,1,1],[1,1,0],[0,1,0]
Name the main java file as Rota3DCube.java
No copy paste answers
Question 1 Write a java program that achieves the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!