|
@@ -411,29 +411,10 @@ THREE.Vector4.prototype = {
|
|
|
|
|
|
min: function ( v ) {
|
|
|
|
|
|
- if ( this.x > v.x ) {
|
|
|
-
|
|
|
- this.x = v.x;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- if ( this.y > v.y ) {
|
|
|
-
|
|
|
- this.y = v.y;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- if ( this.z > v.z ) {
|
|
|
-
|
|
|
- this.z = v.z;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- if ( this.w > v.w ) {
|
|
|
-
|
|
|
- this.w = v.w;
|
|
|
-
|
|
|
- }
|
|
|
+ this.x = Math.min( this.x, v.x );
|
|
|
+ this.y = Math.min( this.y, v.y );
|
|
|
+ this.z = Math.min( this.z, v.z );
|
|
|
+ this.w = Math.min( this.w, v.w );
|
|
|
|
|
|
return this;
|
|
|
|
|
@@ -441,29 +422,10 @@ THREE.Vector4.prototype = {
|
|
|
|
|
|
max: function ( v ) {
|
|
|
|
|
|
- if ( this.x < v.x ) {
|
|
|
-
|
|
|
- this.x = v.x;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- if ( this.y < v.y ) {
|
|
|
-
|
|
|
- this.y = v.y;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- if ( this.z < v.z ) {
|
|
|
-
|
|
|
- this.z = v.z;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- if ( this.w < v.w ) {
|
|
|
-
|
|
|
- this.w = v.w;
|
|
|
-
|
|
|
- }
|
|
|
+ this.x = Math.max( this.x, v.x );
|
|
|
+ this.y = Math.max( this.y, v.y );
|
|
|
+ this.z = Math.max( this.z, v.z );
|
|
|
+ this.w = Math.max( this.w, v.w );
|
|
|
|
|
|
return this;
|
|
|
|