Browse Source

Fixed code example error: there's no method distanceTo for Vector4

Jing Ma 8 years ago
parent
commit
a0362d837c
1 changed files with 1 additions and 1 deletions
  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>