Below are four instances of my implementation of the Matrix3D class. The demo applet is essentially the same as that given on the class web page, except as follows:
Here are the points of a cube, rendered in perspective. The left mouse button rotates the cube, and the right mouse button translates the cube along its x- and y-axes.
This one is the points of the same cube, rendered orthogonally. The left mouse button both rotates the points and also scales it bigger and smaller, depending on whether the mouse cursor is left or right of the center. The right mouse button skews it nonintuitively.
And here are two cows, rendered just like the cubes above. The first one is in perspective, the second one is orthogonal, and the mouse controls work similarly.
I've copied the source for this project to this directory.
Go back to my 6.837 page.