Normand Briere
2019-05-13 f924d3e00db476c06f55f3d5aaef307e17575340
LA.java
....@@ -307,14 +307,15 @@
307307
308308 }
309309
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);
310
+ // Last row should always be 0 0 0 1
311
+ Grafreed.Assert(Math.abs(src[0][3]) <= 1E-15);
312
+ Grafreed.Assert(Math.abs(src[1][3]) <= 1E-15);
313
+ Grafreed.Assert(Math.abs(src[2][3]) <= 1E-15);
314
+ Grafreed.Assert(Math.abs(src[3][3] - 1) <= 1E-15);
315
+ Grafreed.Assert(Math.abs(dst[0][3]) <= 1E-15);
316
+ Grafreed.Assert(Math.abs(dst[1][3]) <= 1E-15);
317
+ Grafreed.Assert(Math.abs(dst[2][3]) <= 1E-15);
318
+ Grafreed.Assert(Math.abs(dst[3][3] - 1) <= 1E-15);
318319 }
319320
320321 static double toRadians(double degrees)