|
@@ -470,9 +470,9 @@ THREE.Vector3.prototype = {
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
|
- isZero: function () {
|
|
|
|
|
|
+ isZero: function ( v ) {
|
|
|
|
|
|
- return ( this.lengthSq() < 0.0001 /* almostZero */ );
|
|
|
|
|
|
+ return this.lengthSq() < ( v !== undefined ? v : 0.0001 );
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
|
@@ -483,4 +483,3 @@ THREE.Vector3.prototype = {
|
|
}
|
|
}
|
|
|
|
|
|
};
|
|
};
|
|
-
|
|
|