Are based on the fallowing code g 1 Translatef 30 00 00 glPu
Are based on the fallowing code. g 1 Translatef (3.0, 0.0, 0.0); glPuahMatrix(); g1 Rotatef (45.0, 0.0, 0.0, 1.0); g 1 Translatef (15.0. 0.0, 0.0); glutSolidSphere (2, 16, 16);//Shere 3 glTranslatef (4.0, 0.0, 0..0); glutSolidSphere (1, 16, 16);//Sphere 2 glPopMatrix(); glutSolidSphere (1, 16, 16); glutSolidSphere (5, 26, 26);//Sphere 1 glRotatef(180., 0.0, 1.0, 0.00); glSolidCube (3.0); a) Derive the transformation matrix for Sphere 2. b) Derive the transformation matrix for Sphere 3. c) Draw a figure to show the positions of the three spheres in 3D space. Please show the positions and related angles of sphere 1, sphere 2, and sphere 3.
Solution
Before going on to discuss the five steps of creating a program it is important to determine what exactly a program is. A program is a list of instructions that contain data for a computer to follow. Different programs are written with different languages. An editing program is made with a different programming \"language\" than one that uses graphics. Some well known programming languages are COBOL -business, BASIC -language, and - C which is used in science. Programming is complicated process,
