瀏覽代碼

Merge remote-tracking branch 'Wilt/patch-2' into dev

Mr.doob 13 年之前
父節點
當前提交
a88d4d2c79
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/core/Vector3.js

+ 4 - 0
src/core/Vector3.js

@@ -249,6 +249,10 @@ THREE.Vector3.prototype = {
 
 	},
 
+	angleTo: function ( v ) {
+		return Math.acos( this.dot( v ) / this.length() / v.length() );
+	};
+
 	distanceTo: function ( v ) {
 
 		return Math.sqrt( this.distanceToSquared( v ) );