Browse Source

fixed function declarations

aardgoose 8 years ago
parent
commit
f9b273d80e
1 changed files with 3 additions and 3 deletions
  1. 3 3
      examples/webgl_nearestneighbour.html

+ 3 - 3
examples/webgl_nearestneighbour.html

@@ -177,7 +177,7 @@
 
 
 			}
 			}
 
 
-			function onWindowResize () {
+			function onWindowResize() {
 
 
 				camera.aspect = window.innerWidth / window.innerHeight;
 				camera.aspect = window.innerWidth / window.innerHeight;
 				camera.updateProjectionMatrix();
 				camera.updateProjectionMatrix();
@@ -187,7 +187,7 @@
 				controls.handleResize();
 				controls.handleResize();
 			}
 			}
 
 
-			function animate () {
+			function animate() {
 
 
 				requestAnimationFrame( animate );
 				requestAnimationFrame( animate );
 
 
@@ -200,7 +200,7 @@
 
 
 			}
 			}
 
 
-			function displayNearest ( position ) {
+			function displayNearest( position ) {
 
 
 				// take the nearest 200 around him. distance^2 'cause we use the manhattan distance and no square is applied in the distance function
 				// take the nearest 200 around him. distance^2 'cause we use the manhattan distance and no square is applied in the distance function
 				var imagePositionsInRange = kdtree.nearest( [ position.x, position.y, position.z ], 100, maxDistance );
 				var imagePositionsInRange = kdtree.nearest( [ position.x, position.y, position.z ], 100, maxDistance );