Browse Source

ParametricGeometries: Clean up

Mugen87 8 years ago
parent
commit
38b8784ad4
1 changed files with 4 additions and 4 deletions
  1. 4 4
      examples/js/ParametricGeometries.js

+ 4 - 4
examples/js/ParametricGeometries.js

@@ -191,11 +191,11 @@ THREE.ParametricGeometries.TorusKnotGeometry = function ( radius, tube, segments
 
 		var r = 0.5;
 
-		var tx = ( 1 + r * Math.cos( q * t ) ) * Math.cos( p * t ),
-			ty = ( 1 + r * Math.cos( q * t ) ) * Math.sin( p * t ),
-			tz = r * Math.sin( q * t );
+		var x = ( 1 + r * Math.cos( q * t ) ) * Math.cos( p * t );
+		var y = ( 1 + r * Math.cos( q * t ) ) * Math.sin( p * t );
+		var z = r * Math.sin( q * t );
 
-		return new THREE.Vector3( tx, ty, tz ).multiplyScalar( radius );
+		return new THREE.Vector3( x, y, z ).multiplyScalar( radius );
 
 	};