Normand Briere
2019-05-05 f69d25e4682ca33edfc8cfad26187050f4eb558a
LA.java
....@@ -160,6 +160,7 @@
160160
161161 static cVector xformDir(cVector v, double mat[][])
162162 {
163
+ new Exception().printStackTrace();
163164 System.exit(0);
164165 cVector temp = new cVector();
165166 xformDir(v, mat, temp);
....@@ -306,14 +307,14 @@
306307
307308 }
308309
309
- GrafreeD.Assert(Math.abs(src[0][3]) <= 1E-15);
310
- GrafreeD.Assert(Math.abs(src[1][3]) <= 1E-15);
311
- GrafreeD.Assert(Math.abs(src[2][3]) <= 1E-15);
312
- GrafreeD.Assert(Math.abs(src[3][3] - 1) <= 1E-15);
313
- GrafreeD.Assert(Math.abs(dst[0][3]) <= 1E-15);
314
- GrafreeD.Assert(Math.abs(dst[1][3]) <= 1E-15);
315
- GrafreeD.Assert(Math.abs(dst[2][3]) <= 1E-15);
316
- GrafreeD.Assert(Math.abs(dst[3][3] - 1) <= 1E-15);
310
+ Grafreed.Assert(Math.abs(src[0][3]) <= 1E-15);
311
+ Grafreed.Assert(Math.abs(src[1][3]) <= 1E-15);
312
+ Grafreed.Assert(Math.abs(src[2][3]) <= 1E-15);
313
+ Grafreed.Assert(Math.abs(src[3][3] - 1) <= 1E-15);
314
+ Grafreed.Assert(Math.abs(dst[0][3]) <= 1E-15);
315
+ Grafreed.Assert(Math.abs(dst[1][3]) <= 1E-15);
316
+ Grafreed.Assert(Math.abs(dst[2][3]) <= 1E-15);
317
+ Grafreed.Assert(Math.abs(dst[3][3] - 1) <= 1E-15);
317318 }
318319
319320 static double toRadians(double degrees)
....@@ -623,6 +624,7 @@
623624 private static int indxr[] = new int[4];
624625 private static int indxc[] = new int[4];
625626
627
+ static double[][] Identity = new double[4][4];
626628
627629 static int SIZE = 0; // 65536*64;
628630
....@@ -638,6 +640,8 @@
638640 costable[i] = Math.cos(PI2 * i/SIZE);
639641 sintable[i] = Math.sin(PI2 * i*i/SIZE/SIZE);
640642 }
643
+
644
+ LA.matIdentity(Identity);
641645 }
642646
643647 static double cos(double x0)