A great many varied and interesting visual effects can be achieved with computer graphics, for which a fundamental understanding of the underlying mathematical concepts – and a knowledge of how they can be implemented in a particular programming language – is essential.
Computer Graphics for Java Programmers, 2nd edition covers elementary concepts in creating and manipulating 2D and 3D graphical objects, covering topics from classic graphics algorithms to perspective drawings and hidden-line elimination. 
Completely revised and updated throughout, the second edition of this highly popular textbook contains a host of ready-to-run-programs and worked examples, illuminating general principles and geometric techniques. Ideal for classroom use or self-study, it provides a perfect foundation for programming computer graphics using Java.
Preface ix
C H A P T E R 1 – Elementary Concepts 1
1.1 Lines, Coordinates and Pixels 2
1.2 The Boundaries of Filled Regions 7
1.3 Logical Coordinates 8
1.4 Anisotropic and Isotropic Mapping Modes 14
1.5 Defining a Polygon by Using the Mouse 21
Exercises 26
C H A P T E R 2 – Applied Geometry 31
2.1 Vectors 32
2.2 Inner Product 34
2.3 Determinants 34
2.4 Vector Product 37
2.5 The Orientation of Three Points 38
2.6 Polygons 41
2.7 The Area of a Polygon 42
2.8 Point-in-Triangle Test 44
2.9 Point-in-Polygon Test 45
2.10 Point-on-Line Test 47
2.11 Distance Between a Point and a Line 50
2.12 Projection of a Point on a Line lĂ'