From 34222e03e1733993f8eae0204cefc08b8b675846 Mon Sep 17 00:00:00 2001 From: Hengxiugao Date: Sat, 25 Oct 2014 14:47:51 -0500 Subject: [PATCH] Triangle represented by its vertex numbers. --- Tria.java | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Tria.java diff --git a/Tria.java b/Tria.java new file mode 100644 index 0000000..520ede2 --- /dev/null +++ b/Tria.java @@ -0,0 +1,29 @@ +// Tria.java: Triangle represented by its vertex numbers. + +/* CGDemo is a companion of the textbook + +L. Ammeraal and K. Zhang, Computer Graphics for Java Programmers, +2nd Edition, Wiley, 2006. + +Copyright (C) 2006 Janis Schubert, Kang Zhang, Leen Ammeraal + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License as +published by the Free Software Foundation; either version 2 of +the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +See the GNU General Public License for more details. + +You should have received a copy of the GNU General Public +License along with this program; if not, write to +the Free Software Foundation, Inc., 51 Franklin Street, +Fifth Floor, Boston, MA 02110-1301, USA. +*/ + +class Tria +{ int iA, iB, iC; + Tria(int i, int j, int k){iA = i; iB = j; iC = k;} +}