Ver Fonte

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

Fixed code example error: there's no method distanceTo for Vector4
Mr.doob há 8 anos atrás
pai
commit
3d8bd46fc0
1 ficheiros alterados com 1 adições e 1 exclusões
  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)
 //no arguments; will be initialised to (0, 0, 0, 1)
 var b = new THREE.Vector4( );
 var b = new THREE.Vector4( );
 
 
-var d = a.distanceTo( b );
+var d = a.dot( b );
 		</code>
 		</code>