提交 1621f57f 编写于 作者: B Brent Walther

Rename error flag parameter in Matrix3.getInverse()

The previous flag is incorrectly named. The flag is supposed to signify a
degenerate matrix. Fixes issue #7612.
上级 8811349d
<!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>
......@@ -92,10 +92,10 @@
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.
......@@ -117,7 +117,7 @@
<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/>
......
......@@ -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/ )
......@@ -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 );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册