Skip to content

Commit 6c3db4b

Browse files
committed
Matrix3/Matrix4: Added deprecation warnings.
1 parent ffd78a1 commit 6c3db4b

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

src/math/Matrix3.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,13 @@ Object.assign( Matrix3.prototype, {
164164

165165
},
166166

167-
getInverse: function ( matrix ) {
167+
getInverse: function ( matrix, throwOnDegenerate ) {
168+
169+
if ( throwOnDegenerate !== undefined ) {
170+
171+
console.warn( "THREE.Matrix3: .getInverse() can no longer be configured to throw on degenerate." );
172+
173+
}
168174

169175
var me = matrix.elements,
170176
te = this.elements,

src/math/Matrix4.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,13 @@ Object.assign( Matrix4.prototype, {
504504

505505
},
506506

507-
getInverse: function ( m ) {
507+
getInverse: function ( m, throwOnDegenerate ) {
508+
509+
if ( throwOnDegenerate !== undefined ) {
510+
511+
console.warn( "THREE.Matrix4: .getInverse() can no longer be configured to throw on degenerate." );
512+
513+
}
508514

509515
// based on http://www.euclideanspace.com/maths/algebra/matrix/functions/inverse/fourD/index.htm
510516
var te = this.elements,

0 commit comments

Comments
 (0)