Skip to content

Commit cc06a10

Browse files
committed
Clean up.
1 parent 5922ade commit cc06a10

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/extras/geometries/PolyhedronGeometry.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ THREE.PolyhedronGeometry = function ( vertices, indices, radius, detail ) {
6161
var x1 = uvs[ 1 ].x;
6262
var x2 = uvs[ 2 ].x;
6363

64-
var max = Math.max( x0, Math.max( x1, x2 ) );
65-
var min = Math.min( x0, Math.min( x1, x2 ) );
64+
var max = Math.max( x0, x1, x2 );
65+
var min = Math.min( x0, x1, x2 );
6666

6767
if ( max > 0.9 && min < 0.1 ) {
6868

src/math/Matrix4.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ THREE.Matrix4.prototype = {
769769
var scaleYSq = te[ 4 ] * te[ 4 ] + te[ 5 ] * te[ 5 ] + te[ 6 ] * te[ 6 ];
770770
var scaleZSq = te[ 8 ] * te[ 8 ] + te[ 9 ] * te[ 9 ] + te[ 10 ] * te[ 10 ];
771771

772-
return Math.sqrt( Math.max( scaleXSq, Math.max( scaleYSq, scaleZSq ) ) );
772+
return Math.sqrt( Math.max( scaleXSq, scaleYSq, scaleZSq ) );
773773

774774
},
775775

0 commit comments

Comments
 (0)