<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PolarDistort class</title>
	<atom:link href="http://www.bit-101.com/blog/?feed=rss2&#038;p=1187" rel="self" type="application/rss+xml" />
	<link>http://www.bit-101.com/blog/?p=1187</link>
	<description>Bill Gates Touched My Mac Book Pro</description>
	<lastBuildDate>Thu, 09 Sep 2010 17:38:28 -0700</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: blog Boreal Kiss</title>
		<link>http://www.bit-101.com/blog/?p=1187#comment-8171</link>
		<dc:creator>blog Boreal Kiss</dc:creator>
		<pubDate>Tue, 29 Apr 2008 10:42:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.bit-101.com/blog/?p=1187#comment-8171</guid>
		<description>&lt;strong&gt;[AS3]PolarDistortã‚¯ãƒ©ã‚¹...&lt;/strong&gt;

Keith Petersã®BIT-101 Blogã§é…å¸ƒã•ã‚Œã¦ã„ã‚‹ç”»åƒç­‰ã‚’é­šçœ¼ãƒ¬ãƒ³ã‚ºã®ã‚ˆã†ã«æ­ªã¾ã›ã‚‹ã‚«ã‚¹ã‚¿ãƒ ã‚¯ãƒ©ã‚¹ãŒæ‰‹è»½ã§é¢ç™½ã„ã€‚ä¾‹ãˆã°ã“ã®ç”»åƒãŒ

Hay Bails - Full Panoramic on Flickr - Photo Sharing!
ã“ã†ãªã‚‹ã€‚

æ­ªã¾.....</description>
		<content:encoded><![CDATA[<p><strong>[AS3]PolarDistortã‚¯ãƒ©ã‚¹&#8230;</strong></p>
<p>Keith Petersã®BIT-101 Blogã§é…å¸ƒã•ã‚Œã¦ã„ã‚‹ç”»åƒç­‰ã‚’é­šçœ¼ãƒ¬ãƒ³ã‚ºã®ã‚ˆã†ã«æ­ªã¾ã›ã‚‹ã‚«ã‚¹ã‚¿ãƒ ã‚¯ãƒ©ã‚¹ãŒæ‰‹è»½ã§é¢ç™½ã„ã€‚ä¾‹ãˆã°ã“ã®ç”»åƒãŒ</p>
<p>Hay Bails &#8211; Full Panoramic on Flickr &#8211; Photo Sharing!<br />
ã“ã†ãªã‚‹ã€‚</p>
<p>æ­ªã¾&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kp</title>
		<link>http://www.bit-101.com/blog/?p=1187#comment-8170</link>
		<dc:creator>kp</dc:creator>
		<pubDate>Fri, 14 Mar 2008 17:45:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.bit-101.com/blog/?p=1187#comment-8170</guid>
		<description>Yeah, you are right, that would help. I&#039;ll probably make some changes to it over the weekend.</description>
		<content:encoded><![CDATA[<p>Yeah, you are right, that would help. I&#8217;ll probably make some changes to it over the weekend.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: owen</title>
		<link>http://www.bit-101.com/blog/?p=1187#comment-8169</link>
		<dc:creator>owen</dc:creator>
		<pubDate>Fri, 14 Mar 2008 16:56:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.bit-101.com/blog/?p=1187#comment-8169</guid>
		<description>Yes, turns out it was, thanks for pointing that out!

 The other thing I noticed is that there is a Math.sqrt call in the loop. Is it possible to remove that? It would result in a big speed increase. Normally if I&#039;m doing a distance check I&#039;ll square the distance I&#039;m comparing, like so:

dist = dx * dx + dy * dy;
if(dist &gt; (inner * inner) &amp;&amp; dist &lt; (outer * outer))
{
etc.

I notice that you&#039;re using the sqrt&#039;d distance later on, so maybe not?</description>
		<content:encoded><![CDATA[<p>Yes, turns out it was, thanks for pointing that out!</p>
<p> The other thing I noticed is that there is a Math.sqrt call in the loop. Is it possible to remove that? It would result in a big speed increase. Normally if I&#8217;m doing a distance check I&#8217;ll square the distance I&#8217;m comparing, like so:</p>
<p>dist = dx * dx + dy * dy;<br />
if(dist &gt; (inner * inner) &amp;&amp; dist &lt; (outer * outer))<br />
{<br />
etc.</p>
<p>I notice that you&#8217;re using the sqrt&#8217;d distance later on, so maybe not?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kp</title>
		<link>http://www.bit-101.com/blog/?p=1187#comment-8168</link>
		<dc:creator>kp</dc:creator>
		<pubDate>Fri, 14 Mar 2008 00:08:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.bit-101.com/blog/?p=1187#comment-8168</guid>
		<description>owen, is your image taller than wide? The previous lines:

var optWidth:Number = Math.round(Math.min(cx * Math.PI * 2, 2880));
var scale:Number = optWidth / _source.width;

should make sure that the width is 2880 max. Then that scale figure is used to make the optHeight with the same aspect ratio as the original. So unless it is taller than wide, the height should never exceed 2880. Of course, it was an assumption on my part that people would use long, narrow images like panoramas exclusively. I guess I should fix that.</description>
		<content:encoded><![CDATA[<p>owen, is your image taller than wide? The previous lines:</p>
<p>var optWidth:Number = Math.round(Math.min(cx * Math.PI * 2, 2880));<br />
var scale:Number = optWidth / _source.width;</p>
<p>should make sure that the width is 2880 max. Then that scale figure is used to make the optHeight with the same aspect ratio as the original. So unless it is taller than wide, the height should never exceed 2880. Of course, it was an assumption on my part that people would use long, narrow images like panoramas exclusively. I guess I should fix that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: owen</title>
		<link>http://www.bit-101.com/blog/?p=1187#comment-8167</link>
		<dc:creator>owen</dc:creator>
		<pubDate>Thu, 13 Mar 2008 23:07:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.bit-101.com/blog/?p=1187#comment-8167</guid>
		<description>Nice work! Had some trouble getting it to work, but all good now :)
This line was producing an error as I was getting a number higher than 2880:

var optHeight = _source.height * scale;</description>
		<content:encoded><![CDATA[<p>Nice work! Had some trouble getting it to work, but all good now <img src='http://www.bit-101.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
This line was producing an error as I was getting a number higher than 2880:</p>
<p>var optHeight = _source.height * scale;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bo</title>
		<link>http://www.bit-101.com/blog/?p=1187#comment-8166</link>
		<dc:creator>Bo</dc:creator>
		<pubDate>Thu, 13 Mar 2008 13:25:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.bit-101.com/blog/?p=1187#comment-8166</guid>
		<description>Wicked pissa!</description>
		<content:encoded><![CDATA[<p>Wicked pissa!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kp</title>
		<link>http://www.bit-101.com/blog/?p=1187#comment-8165</link>
		<dc:creator>kp</dc:creator>
		<pubDate>Thu, 13 Mar 2008 11:46:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.bit-101.com/blog/?p=1187#comment-8165</guid>
		<description>Yeah, there&#039;s some weirdness using text fields. It seems the width does not always get calculated correctly. It works perfectly on any kind of graphic though, right down to the pixel. I think it&#039;s got to do with the way the glyphs of the font are scaled. It&#039;s not always a smooth progression. I bet if I embedded the font it would be fine.</description>
		<content:encoded><![CDATA[<p>Yeah, there&#8217;s some weirdness using text fields. It seems the width does not always get calculated correctly. It works perfectly on any kind of graphic though, right down to the pixel. I think it&#8217;s got to do with the way the glyphs of the font are scaled. It&#8217;s not always a smooth progression. I bet if I embedded the font it would be fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eme</title>
		<link>http://www.bit-101.com/blog/?p=1187#comment-8164</link>
		<dc:creator>eme</dc:creator>
		<pubDate>Thu, 13 Mar 2008 08:38:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.bit-101.com/blog/?p=1187#comment-8164</guid>
		<description>great!
it&#039;s cool to see strings of a single character repeated , and adding them one by one. i specially like w&#039;s and y&#039;s.
there&#039;s kind of a minimum width limitation. it will accept a single &#039;m&#039;, but not a single &#039;i&#039;
ok enough, back to work</description>
		<content:encoded><![CDATA[<p>great!<br />
it&#8217;s cool to see strings of a single character repeated , and adding them one by one. i specially like w&#8217;s and y&#8217;s.<br />
there&#8217;s kind of a minimum width limitation. it will accept a single &#8216;m&#8217;, but not a single &#8216;i&#8217;<br />
ok enough, back to work</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gary</title>
		<link>http://www.bit-101.com/blog/?p=1187#comment-8163</link>
		<dc:creator>gary</dc:creator>
		<pubDate>Thu, 13 Mar 2008 08:16:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.bit-101.com/blog/?p=1187#comment-8163</guid>
		<description>this rock!</description>
		<content:encoded><![CDATA[<p>this rock!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nik</title>
		<link>http://www.bit-101.com/blog/?p=1187#comment-8162</link>
		<dc:creator>Nik</dc:creator>
		<pubDate>Thu, 13 Mar 2008 01:39:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.bit-101.com/blog/?p=1187#comment-8162</guid>
		<description>Wow! That&#039;s awesome. Thanks for posting the source Keith, this will be great to learn a few things from..

Nik</description>
		<content:encoded><![CDATA[<p>Wow! That&#8217;s awesome. Thanks for posting the source Keith, this will be great to learn a few things from..</p>
<p>Nik</p>
]]></content:encoded>
	</item>
</channel>
</rss>
