提交 38b8784a 编写于 作者: M Mugen87

ParametricGeometries: Clean up

上级 e576c251
...@@ -191,11 +191,11 @@ THREE.ParametricGeometries.TorusKnotGeometry = function ( radius, tube, segments ...@@ -191,11 +191,11 @@ THREE.ParametricGeometries.TorusKnotGeometry = function ( radius, tube, segments
var r = 0.5; var r = 0.5;
var tx = ( 1 + r * Math.cos( q * t ) ) * Math.cos( p * t ), var x = ( 1 + r * Math.cos( q * t ) ) * Math.cos( p * t );
ty = ( 1 + r * Math.cos( q * t ) ) * Math.sin( p * t ), var y = ( 1 + r * Math.cos( q * t ) ) * Math.sin( p * t );
tz = r * Math.sin( q * 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 );
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册