提交 19197421 编写于 作者: M Mr.doob

Line3: Renamed center() to getCenter(). See 5578c057

上级 a9660464
......@@ -126,6 +126,13 @@ Object.assign( Box3.prototype, {
}
} );
Object.assign( Line3.prototype, {
center: function ( optionalTarget ) {
console.warn( 'THREE.Line3: .center() has been renamed to .getCenter().' );
return this.getCenter( optionalTarget );
}
} );
Object.assign( Matrix3.prototype, {
multiplyVector3: function ( vector ) {
console.warn( 'THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead.' );
......
......@@ -40,7 +40,7 @@ Line3.prototype = {
},
center: function ( optionalTarget ) {
getCenter: function ( optionalTarget ) {
var result = optionalTarget || new Vector3();
return result.addVectors( this.start, this.end ).multiplyScalar( 0.5 );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册