[prev in list] [next in list] [prev in thread] [next in thread]
List: osflash-sandy
Subject: [Sandy] [sandy commit] r745 -
From: codesite-noreply () google ! com (codesite-noreply at google ! com)
Date: 2008-08-25 17:46:13
Message-ID: 0016e64ca7d603765104554c5d57 () google ! com
[Download RAW message or body]
Author: baepstein at gmail.com
Date: Mon Aug 25 10:46:07 2008
New Revision: 745
Modified:
trunk/sandy/as3/trunk/src/sandy/core/data/Matrix4.as
Log:
Throw formal error of type Error if matrix inverse cannot be calculated
Modified: trunk/sandy/as3/trunk/src/sandy/core/data/Matrix4.as
==============================================================================
--- trunk/sandy/as3/trunk/src/sandy/core/data/Matrix4.as (original)
+++ trunk/sandy/as3/trunk/src/sandy/core/data/Matrix4.as Mon Aug 25
10:46:07 2008
@@ -724,7 +724,7 @@
var d:Number = det();
if( Math.abs(d) < 0.001 )
{
- throw "cannot invert a matrix with a null determinant";
+ throw new Error ("cannot invert a matrix with a null determinant");
return;
}
//We use Cramer formula, so we need to devide by the determinant. We
prefer multiply by the inverse
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic