Question: Assignment 0 3 - Due on ( 1 0 ) / ( 1 4 ) ( ) / ( 2 4 ) , 1 1
Assignment Due onpm
Question
Write a java program that achieves the rotation of a unit cube about an arbitrary
fixed point page first special case of D rotation Produce only text output for
this program similar to RotaDTest 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 coordinate values before and after the D rotation.
The program should take commandline arguments for the three customizable
parameters arbitrary point A a a a desired angle of rotation alpha, and the
principle axis of rotation xaxis yaxis or zaxis In other words, after compiling
your program, you may run it by typing the following as an example:
java RotaDCube yaxis
where aaa alpha degrees, and yaxi s is the principle axis
of rotation.
Note:
The initial vertices of the cube before rotation should be
Name the main java file as RotaDCube.java
SAMPLE OUTPUT FOR QUESTION
a Rotation of unit cube about arbitrary point by degrees, xaxis is the principle axis of
rotation
C:UserspkumarDocumentsUTDCSgrjavaejava RotaDCube xaxis
Rotate unit cube radians about xaxis at point
Initial Vertices Rotated Vertices
:
:
:
:
:
:
:
:
b Rotation of unit cube about arbitrary point by degrees, yaxis is the principle axis of
rotation
C:UserspkumarDocumentsUTDCSgrjavaejava RotaDCube yaxis
Rotate unit cube radians about yaxis at point
Initial Vertices Rotated Vertices
:
:
:
:
:
:
:
:
c Rotation of unit cube about arbitrary point by degrees, zaxis is the principle axis of
rotation
C:UserspkumarDocumentsUTDCSgrjavaejava RotaDCube zaxis
Rotate unit cube radians about zaxis at point
Initial Vertices Rotated Vertices
:
:
:
:
