|
@@ -52,7 +52,9 @@ import { Matrix4 } from './math/Matrix4.js';
|
|
|
import { Plane } from './math/Plane.js';
|
|
|
import { Quaternion } from './math/Quaternion.js';
|
|
|
import { Ray } from './math/Ray.js';
|
|
|
+import { Vector2 } from './math/Vector2.js';
|
|
|
import { Vector3 } from './math/Vector3.js';
|
|
|
+import { Vector4 } from './math/Vector4.js';
|
|
|
import { LineSegments } from './objects/LineSegments.js';
|
|
|
import { LOD } from './objects/LOD.js';
|
|
|
import { Points } from './objects/Points.js';
|
|
@@ -541,6 +543,17 @@ Object.assign( Shape.prototype, {
|
|
|
|
|
|
} );
|
|
|
|
|
|
+Object.assign( Vector2.prototype, {
|
|
|
+
|
|
|
+ fromAttribute: function ( attribute, index, offset ) {
|
|
|
+
|
|
|
+ console.error( 'THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute().' );
|
|
|
+ return this.fromBufferAttribute( attribute, index, offset );
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+} );
|
|
|
+
|
|
|
Object.assign( Vector3.prototype, {
|
|
|
|
|
|
setEulerFromRotationMatrix: function () {
|
|
@@ -570,6 +583,24 @@ Object.assign( Vector3.prototype, {
|
|
|
console.warn( 'THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn().' );
|
|
|
return this.setFromMatrixColumn( matrix, index );
|
|
|
|
|
|
+ },
|
|
|
+
|
|
|
+ fromAttribute: function ( attribute, index, offset ) {
|
|
|
+
|
|
|
+ console.error( 'THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute().' );
|
|
|
+ return this.fromBufferAttribute( attribute, index, offset );
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+} );
|
|
|
+
|
|
|
+Object.assign( Vector4.prototype, {
|
|
|
+
|
|
|
+ fromAttribute: function ( attribute, index, offset ) {
|
|
|
+
|
|
|
+ console.error( 'THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute().' );
|
|
|
+ return this.fromBufferAttribute( attribute, index, offset );
|
|
|
+
|
|
|
}
|
|
|
|
|
|
} );
|