Skip to content

Commit

Permalink
Merge pull request mrdoob#7614 from brentwalther/fix-matrix3
Browse files Browse the repository at this point in the history
Rename error flag parameter in Matrix3.getInverse()
  • Loading branch information
mrdoob committed Nov 17, 2015
2 parents 7569937 + 1621f57 commit 6ee5ab9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions docs/api/math/Matrix3.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta charset="utf-8" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
Expand Down Expand Up @@ -92,10 +92,10 @@ <h3>[method:Matrix3 getNormalMatrix]([page:Matrix4 m]) [page:Matrix3 this]</h3>
Sets this matrix as the normal matrix (upper left 3x3)of the passed [page:Matrix4 matrix4]. The normal matrix is the inverse transpose of the matrix *m*.
</div>

<h3>[method:Matrix3 getInverse]([page:Matrix4 m], [page:Boolean throwOnInvertible]) [page:Matrix3 this]</h3>
<h3>[method:Matrix3 getInverse]([page:Matrix4 m], [page:Boolean throwOnDegenerate]) [page:Matrix3 this]</h3>
<div>
m -- [page:Matrix4]<br />
throwOnInvertible -- [Page:Boolean] If true, throw an error if the matrix is invertible.
throwOnDegenerate -- [Page:Boolean] If true, throw an error if the matrix is degenerate (not invertible).
</div>
<div>
Set this matrix to the inverse of the passed matrix.
Expand All @@ -117,7 +117,7 @@ <h3>[method:Matrix3 clone]()</h3>
<h3>[method:Matrix3 identity]() [page:Matrix3 this]</h3>
<div>
Resets this matrix to identity.<br/><br/>

1, 0, 0<br/>
0, 1, 0<br/>
0, 0, 1<br/>
Expand Down
4 changes: 2 additions & 2 deletions src/math/Matrix3.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ THREE.Matrix3.prototype = {

},

getInverse: function ( matrix, throwOnInvertible ) {
getInverse: function ( matrix, throwOnDegenerate ) {

// input: THREE.Matrix4
// ( based on http://code.google.com/p/webgl-mjs/ )
Expand All @@ -176,7 +176,7 @@ THREE.Matrix3.prototype = {

var msg = "THREE.Matrix3.getInverse(): can't invert matrix, determinant is 0";

if ( throwOnInvertible || false ) {
if ( throwOnDegenerate || false ) {

throw new Error( msg );

Expand Down

0 comments on commit 6ee5ab9

Please sign in to comment.