Return to Covington Innovations home.
Consulting ServicesSoftwareBooksMore...

(If you do not see a rotating cube here, your browser apparently does not support Java.)

This Java applet illustrates a three-dimensional graphics example: a rotating wireframe cube. Four classes are necessary. Here is the source code for each.

  1. Java xyzpoint.java: to represent a point in three dimensional space
  2. Javaxyzline.java: to represent a line connecting two points in three dimensional space
  3. Javawirefr.java: to represent a wireframe object as an array of xyzline objects
  4. Javacube.java: to display a rotating wireframe cube


(adapted from Java Programming the Easy Way, Douglas Downing, Barron's Educational Series)

Back to the Dictionary of Computer and Internet Terms Programs page



TopTop

Michael Covington's Daily Notebook (Blog) | Contact Us
Last Revision September 27, 2009