File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,13 @@ Object.assign( Box3.prototype, {
126
126
}
127
127
} ) ;
128
128
129
+ Object . assign ( Line3 . prototype , {
130
+ center : function ( optionalTarget ) {
131
+ console . warn ( 'THREE.Line3: .center() has been renamed to .getCenter().' ) ;
132
+ return this . getCenter ( optionalTarget ) ;
133
+ }
134
+ } ) ;
135
+
129
136
Object . assign ( Matrix3 . prototype , {
130
137
multiplyVector3 : function ( vector ) {
131
138
console . warn ( 'THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead.' ) ;
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ Line3.prototype = {
40
40
41
41
} ,
42
42
43
- center : function ( optionalTarget ) {
43
+ getCenter : function ( optionalTarget ) {
44
44
45
45
var result = optionalTarget || new Vector3 ( ) ;
46
46
return result . addVectors ( this . start , this . end ) . multiplyScalar ( 0.5 ) ;
You can’t perform that action at this time.
0 commit comments