From f924d3e00db476c06f55f3d5aaef307e17575340 Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Mon, 13 May 2019 07:29:08 -0400
Subject: [PATCH] Transform children

---
 LA.java |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/LA.java b/LA.java
index e1aac14..904647a 100644
--- a/LA.java
+++ b/LA.java
@@ -307,14 +307,15 @@
 
         }
 
-        GrafreeD.Assert(Math.abs(src[0][3]) <= 1E-15);
-        GrafreeD.Assert(Math.abs(src[1][3]) <= 1E-15);
-        GrafreeD.Assert(Math.abs(src[2][3]) <= 1E-15);
-        GrafreeD.Assert(Math.abs(src[3][3] - 1) <= 1E-15);
-        GrafreeD.Assert(Math.abs(dst[0][3]) <= 1E-15);
-        GrafreeD.Assert(Math.abs(dst[1][3]) <= 1E-15);
-        GrafreeD.Assert(Math.abs(dst[2][3]) <= 1E-15);
-        GrafreeD.Assert(Math.abs(dst[3][3] - 1) <= 1E-15);
+        // Last row should always be 0 0 0 1
+        Grafreed.Assert(Math.abs(src[0][3]) <= 1E-15);
+        Grafreed.Assert(Math.abs(src[1][3]) <= 1E-15);
+        Grafreed.Assert(Math.abs(src[2][3]) <= 1E-15);
+        Grafreed.Assert(Math.abs(src[3][3] - 1) <= 1E-15);
+        Grafreed.Assert(Math.abs(dst[0][3]) <= 1E-15);
+        Grafreed.Assert(Math.abs(dst[1][3]) <= 1E-15);
+        Grafreed.Assert(Math.abs(dst[2][3]) <= 1E-15);
+        Grafreed.Assert(Math.abs(dst[3][3] - 1) <= 1E-15);
     }
 
     static double toRadians(double degrees)

--
Gitblit v1.6.2