提交 ef3bfa70 编写于 作者: B Ben Houston

Euler.toVector3(), very useful.

上级 6c7a4898
......@@ -279,6 +279,17 @@ THREE.Euler.prototype = {
return [ this._x, this._y, this._z, this._order ];
},
toVector3: function ( optionalResult ) {
if( optionalResult ) {
return optionalResult.set( this._x, this._y, this._z );
}
else {
return new THREE.Vector3( this._x, this._y, this._z );
}
},
onChange: function ( callback ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册