﻿<?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: Interpolation of a Point on Quadratic Curve</title>
	<atom:link href="http://keith-hair.net/blog/2008/05/30/interpolation-of-a-point-on-quadratic-curve/feed/" rel="self" type="application/rss+xml" />
	<link>http://keith-hair.net/blog/2008/05/30/interpolation-of-a-point-on-quadratic-curve/</link>
	<description>Scripting is fun like any other hobby</description>
	<lastBuildDate>Thu, 03 May 2012 19:44:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Matt Rix</title>
		<link>http://keith-hair.net/blog/2008/05/30/interpolation-of-a-point-on-quadratic-curve/comment-page-1/#comment-172</link>
		<dc:creator>Matt Rix</dc:creator>
		<pubDate>Sat, 14 Feb 2009 17:39:25 +0000</pubDate>
		<guid isPermaLink="false">http://keith-hair.com/blog/?p=4#comment-172</guid>
		<description>Hey, thanks for this, it&#039;s exactly what I was looking for. I know this is super old, but one note of caution: casting to Sprite on every graphics line is very very slow &quot;Sprite(plotter_mc.parent).graphics&quot;. It&#039;s much better to assign the graphics object to a var, ie: 

var g:Graphics = Sprite(plotter_mc.parent).graphics;

and then the rest of your lines would just be:

g.moveTo(0,0);
g.lineTo(10,10);

etc.</description>
		<content:encoded><![CDATA[<p>Hey, thanks for this, it&#8217;s exactly what I was looking for. I know this is super old, but one note of caution: casting to Sprite on every graphics line is very very slow &#8220;Sprite(plotter_mc.parent).graphics&#8221;. It&#8217;s much better to assign the graphics object to a var, ie: </p>
<p>var g:Graphics = Sprite(plotter_mc.parent).graphics;</p>
<p>and then the rest of your lines would just be:</p>
<p>g.moveTo(0,0);<br />
g.lineTo(10,10);</p>
<p>etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith H</title>
		<link>http://keith-hair.net/blog/2008/05/30/interpolation-of-a-point-on-quadratic-curve/comment-page-1/#comment-168</link>
		<dc:creator>Keith H</dc:creator>
		<pubDate>Sun, 01 Feb 2009 14:51:19 +0000</pubDate>
		<guid isPermaLink="false">http://keith-hair.com/blog/?p=4#comment-168</guid>
		<description>Kanu,

Watch out for the &quot;&gt;&quot; and &quot;&lt;&quot; characters. They are suppose to be &quot;&gt;&quot; and  &quot;&lt;&quot;.
The codehighlighter accidentally converts them to html entities.</description>
		<content:encoded><![CDATA[<p>Kanu,</p>
<p>Watch out for the &#8220;&amp;gt;&#8221; and &#8220;&amp;lt;&#8221; characters. They are suppose to be &#8220;>&#8221; and  &#8220;<&#8220;.<br />
The codehighlighter accidentally converts them to html entities.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kanu kukreja</title>
		<link>http://keith-hair.net/blog/2008/05/30/interpolation-of-a-point-on-quadratic-curve/comment-page-1/#comment-167</link>
		<dc:creator>kanu kukreja</dc:creator>
		<pubDate>Sun, 01 Feb 2009 12:47:19 +0000</pubDate>
		<guid isPermaLink="false">http://keith-hair.com/blog/?p=4#comment-167</guid>
		<description>1084: Syntax error: expecting rightparen before semicolon.
1084: Syntax error: expecting semicolon before rightparen.
1084: Syntax error: expecting rightbrace before end of program.

getting these many errors.
Can you please share a sample file.
Thanks,
kanu</description>
		<content:encoded><![CDATA[<p>1084: Syntax error: expecting rightparen before semicolon.<br />
1084: Syntax error: expecting semicolon before rightparen.<br />
1084: Syntax error: expecting rightbrace before end of program.</p>
<p>getting these many errors.<br />
Can you please share a sample file.<br />
Thanks,<br />
kanu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith H</title>
		<link>http://keith-hair.net/blog/2008/05/30/interpolation-of-a-point-on-quadratic-curve/comment-page-1/#comment-145</link>
		<dc:creator>Keith H</dc:creator>
		<pubDate>Thu, 20 Nov 2008 16:13:16 +0000</pubDate>
		<guid isPermaLink="false">http://keith-hair.com/blog/?p=4#comment-145</guid>
		<description>Hi dare2win,
Have you tried &quot;Math.atan2&quot; method to detect angle between the points?
This returns in radians but you can multiply by &quot;180 / Math.PI&quot; for degree rotation.
 
function angleOfPoints(a:Point, b:Point):Number
{
	var dx:Number = a.x-b.x;
	var dy:Number = a.y-b.y;
	var rad:Number = Math.atan2(dy, dx);
	return rad;
}</description>
		<content:encoded><![CDATA[<p>Hi dare2win,<br />
Have you tried &#8220;Math.atan2&#8243; method to detect angle between the points?<br />
This returns in radians but you can multiply by &#8220;180 / Math.PI&#8221; for degree rotation.</p>
<p>function angleOfPoints(a:Point, b:Point):Number<br />
{<br />
	var dx:Number = a.x-b.x;<br />
	var dy:Number = a.y-b.y;<br />
	var rad:Number = Math.atan2(dy, dx);<br />
	return rad;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dare2win</title>
		<link>http://keith-hair.net/blog/2008/05/30/interpolation-of-a-point-on-quadratic-curve/comment-page-1/#comment-144</link>
		<dc:creator>dare2win</dc:creator>
		<pubDate>Thu, 20 Nov 2008 15:55:03 +0000</pubDate>
		<guid isPermaLink="false">http://keith-hair.com/blog/?p=4#comment-144</guid>
		<description>I have an application in which I plot a graph(arbitarary graph, not fixed).While plotting the graph, I have an object on the graph which will show the direction of plotting. But while rotating at some point I am facing problem. can anyone help me out?</description>
		<content:encoded><![CDATA[<p>I have an application in which I plot a graph(arbitarary graph, not fixed).While plotting the graph, I have an object on the graph which will show the direction of plotting. But while rotating at some point I am facing problem. can anyone help me out?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

