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

optimize Vector3.reflect, unit tests still pass.

上级 f4e081c9
......@@ -548,9 +548,9 @@ THREE.extend( THREE.Vector3.prototype, {
return function ( normal ) {
v1.copy( this ).ortho( normal ).multiplyScalar( -2 );
v1.copy( this ).project( normal ).multiplyScalar( 2 );
return this.add( v1 );
return this.subVectors( v1, this );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册