|
@@ -3631,6 +3631,13 @@ class Vector3 {
|
|
|
return this.fromArray(m.elements, index * 3);
|
|
|
}
|
|
|
|
|
|
+ setFromEuler(e) {
|
|
|
+ this.x = e._x;
|
|
|
+ this.y = e._y;
|
|
|
+ this.z = e._z;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
equals(v) {
|
|
|
return v.x === this.x && v.y === this.y && v.z === this.z;
|
|
|
}
|
|
@@ -5571,14 +5578,6 @@ class Euler {
|
|
|
return array;
|
|
|
}
|
|
|
|
|
|
- toVector3(optionalResult) {
|
|
|
- if (optionalResult) {
|
|
|
- return optionalResult.set(this._x, this._y, this._z);
|
|
|
- } else {
|
|
|
- return new Vector3(this._x, this._y, this._z);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
_onChange(callback) {
|
|
|
this._onChangeCallback = callback;
|
|
|
return this;
|
|
@@ -34201,7 +34200,7 @@ class PointLightHelper extends Mesh {
|
|
|
this.update();
|
|
|
/*
|
|
|
// TODO: delete this comment?
|
|
|
- const distanceGeometry = new THREE.IcosahedronBufferGeometry( 1, 2 );
|
|
|
+ const distanceGeometry = new THREE.IcosahedronGeometry( 1, 2 );
|
|
|
const distanceMaterial = new THREE.MeshBasicMaterial( { color: hexColor, fog: false, wireframe: true, opacity: 0.1, transparent: true } );
|
|
|
this.lightSphere = new THREE.Mesh( bulbGeometry, bulbMaterial );
|
|
|
this.lightDistance = new THREE.Mesh( distanceGeometry, distanceMaterial );
|
|
@@ -35343,6 +35342,11 @@ Box3.prototype.size = function (optionalTarget) {
|
|
|
}; //
|
|
|
|
|
|
|
|
|
+Euler.prototype.toVector3 = function () {
|
|
|
+ console.error('THREE.Euler: .toVector3() has been removed. Use Vector3.setFromEuler() instead');
|
|
|
+}; //
|
|
|
+
|
|
|
+
|
|
|
Sphere.prototype.empty = function () {
|
|
|
console.warn('THREE.Sphere: .empty() has been renamed to .isEmpty().');
|
|
|
return this.isEmpty();
|