浏览代码

Merge pull request #10852 from m4jing/patch-for-doc

Fixed code example error: there's no method distanceTo for Vector4
Mr.doob 8 年之前
父节点
当前提交
3d8bd46fc0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/api/math/Vector4.html

+ 1 - 1
docs/api/math/Vector4.html

@@ -42,7 +42,7 @@ var a = new THREE.Vector4( 0, 1, 0, 0 );
 //no arguments; will be initialised to (0, 0, 0, 1)
 var b = new THREE.Vector4( );
 
-var d = a.distanceTo( b );
+var d = a.dot( b );
 		</code>