浏览代码

Reverting Vector3.angleTo change. See #7343.

Mr.doob 10 年之前
父节点
当前提交
4e9abd1fd2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/math/Vector3.js

+ 1 - 1
src/math/Vector3.js

@@ -655,7 +655,7 @@ THREE.Vector3.prototype = {
 
 	angleTo: function ( v ) {
 
-		var theta = this.dot( v ) / Math.sqrt( this.lengthSq() * v.lengthSq() );
+		var theta = this.dot( v ) / ( this.length() * v.length() );
 
 		// clamp, to handle numerical problems