From: Rene S. <sa...@us...> - 2005-02-20 21:51:17
|
Update of /cvsroot/jake2/jake2/src/jake2/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17458/src/jake2/util Modified Files: Math3D.java Log Message: VectorEquals instead of VectorCompare Index: Math3D.java =================================================================== RCS file: /cvsroot/jake2/jake2/src/jake2/util/Math3D.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Math3D.java 16 Jan 2005 17:04:50 -0000 1.8 --- Math3D.java 20 Feb 2005 21:50:36 -0000 1.9 *************** *** 75,83 **** a[0] = a[1] = a[2] = 0; } ! public static int VectorCompare(float[] v1, float[] v2) { if (v1[0] != v2[0] || v1[1] != v2[1] || v1[2] != v2[2]) ! return 0; ! return 1; } public static void VectorNegate(float[] from, float[] to) { --- 75,83 ---- a[0] = a[1] = a[2] = 0; } ! public static boolean VectorEquals(float[] v1, float[] v2) { if (v1[0] != v2[0] || v1[1] != v2[1] || v1[2] != v2[2]) ! return false; ! return true; } public static void VectorNegate(float[] from, float[] to) { |