|
@@ -929,8 +929,8 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
|
|
|
|
|
|
roundToZero() {
|
|
roundToZero() {
|
|
|
|
|
|
- this.x = ( this.x < 0 ) ? Math.ceil( this.x ) : Math.floor( this.x );
|
|
|
|
- this.y = ( this.y < 0 ) ? Math.ceil( this.y ) : Math.floor( this.y );
|
|
|
|
|
|
+ this.x = Math.trunc( this.x );
|
|
|
|
+ this.y = Math.trunc( this.y );
|
|
|
|
|
|
return this;
|
|
return this;
|
|
|
|
|
|
@@ -2757,10 +2757,10 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
|
|
|
|
|
|
roundToZero() {
|
|
roundToZero() {
|
|
|
|
|
|
- this.x = ( this.x < 0 ) ? Math.ceil( this.x ) : Math.floor( this.x );
|
|
|
|
- this.y = ( this.y < 0 ) ? Math.ceil( this.y ) : Math.floor( this.y );
|
|
|
|
- this.z = ( this.z < 0 ) ? Math.ceil( this.z ) : Math.floor( this.z );
|
|
|
|
- this.w = ( this.w < 0 ) ? Math.ceil( this.w ) : Math.floor( this.w );
|
|
|
|
|
|
+ this.x = Math.trunc( this.x );
|
|
|
|
+ this.y = Math.trunc( this.y );
|
|
|
|
+ this.z = Math.trunc( this.z );
|
|
|
|
+ this.w = Math.trunc( this.w );
|
|
|
|
|
|
return this;
|
|
return this;
|
|
|
|
|
|
@@ -4268,9 +4268,9 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
|
|
|
|
|
|
roundToZero() {
|
|
roundToZero() {
|
|
|
|
|
|
- this.x = ( this.x < 0 ) ? Math.ceil( this.x ) : Math.floor( this.x );
|
|
|
|
- this.y = ( this.y < 0 ) ? Math.ceil( this.y ) : Math.floor( this.y );
|
|
|
|
- this.z = ( this.z < 0 ) ? Math.ceil( this.z ) : Math.floor( this.z );
|
|
|
|
|
|
+ this.x = Math.trunc( this.x );
|
|
|
|
+ this.y = Math.trunc( this.y );
|
|
|
|
+ this.z = Math.trunc( this.z );
|
|
|
|
|
|
return this;
|
|
return this;
|
|
|
|
|
|
@@ -7500,20 +7500,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
|
|
|
|
|
|
clear() {
|
|
clear() {
|
|
|
|
|
|
- for ( let i = 0; i < this.children.length; i ++ ) {
|
|
|
|
-
|
|
|
|
- const object = this.children[ i ];
|
|
|
|
-
|
|
|
|
- object.parent = null;
|
|
|
|
-
|
|
|
|
- object.dispatchEvent( _removedEvent );
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- this.children.length = 0;
|
|
|
|
-
|
|
|
|
- return this;
|
|
|
|
-
|
|
|
|
|
|
+ return this.remove( ... this.children );
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -26899,14 +26886,6 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
|
|
camera.matrix.decompose( camera.position, camera.quaternion, camera.scale );
|
|
camera.matrix.decompose( camera.position, camera.quaternion, camera.scale );
|
|
camera.updateMatrixWorld( true );
|
|
camera.updateMatrixWorld( true );
|
|
|
|
|
|
- const children = camera.children;
|
|
|
|
-
|
|
|
|
- for ( let i = 0, l = children.length; i < l; i ++ ) {
|
|
|
|
-
|
|
|
|
- children[ i ].updateMatrixWorld( true );
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
camera.projectionMatrix.copy( cameraXR.projectionMatrix );
|
|
camera.projectionMatrix.copy( cameraXR.projectionMatrix );
|
|
camera.projectionMatrixInverse.copy( cameraXR.projectionMatrixInverse );
|
|
camera.projectionMatrixInverse.copy( cameraXR.projectionMatrixInverse );
|
|
|
|
|