readme.md 885 Bytes
Newer Older
Daniel Vogel's avatar
Daniel Vogel committed
1 2 3 4 5 6
## Java graphics demos

> NOTE: These demos require vecmath.jar to be compiled with demo. See the included Makefile. 

* `SimpleDraw.java` Responds to mouse events and draws primitives in 2D canvas.

Daniel Vogel's avatar
Daniel Vogel committed
7
* `ClosestPoint.java` Computes distance from mouse to closest point on line using algorithm discussed in class. Also uses built-in method to accomplish same thing.
Daniel Vogel's avatar
Daniel Vogel committed
8

Daniel Vogel's avatar
Daniel Vogel committed
9
* `PolygonHittest.java` Uses built-in method to hit-test closed polygon.
Daniel Vogel's avatar
Daniel Vogel committed
10

Daniel Vogel's avatar
Daniel Vogel committed
11
* `Transform1.java` Shows how to "manually" transform a shape model. NOTE: in practice, you don't want do this. Use Graphics2D matrix tranformations instead.
Daniel Vogel's avatar
Daniel Vogel committed
12

Daniel Vogel's avatar
Daniel Vogel committed
13
* `Transform2.java`  Shows how to use Graphics2D matrix tranformations to transform a shape model. 
Daniel Vogel's avatar
Daniel Vogel committed
14

Daniel Vogel's avatar
Daniel Vogel committed
15 16 17
* `CompositionOrder` Demo of different concatenation orders of matrix transforms. Click the window to change the order.

* `BarExercise` Demo of multiple transformation exercise.
Daniel Vogel's avatar
Daniel Vogel committed
18 19