<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="/templates/xsl/lab.xsl"?>
<entry>
	<title>Mashed Up Sphere Variation Six - haXe &amp; flash 10</title>
	<swf>
		<url>Random.swf</url>
		<width>800</width>
		<height>450</height>
	</swf>
	<info>
		<p>introducing atan2(x,y) in to <a href="/experiments/basic-3d-particles/mashed-up-5/">mashup variation 5</a> gives some interesting results.</p>
	</info>
	<sources>
		<snip>
<pre>for( i in 0...PARTICLES ) {
    a = (360/PARTICLES)*i;
    r = (i/PARTICLES) * Math.PI;
    x = Math.tan(a) * Math.cos(r);
    y = Math.tan(a) * Math.sin(r);
    z = Math.atan2( x, y );
}</pre>
		</snip>
	</sources>
</entry>
