<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kris' Blog &#187; math</title>
	<atom:link href="http://krisselden.com/tag/math/feed/" rel="self" type="application/rss+xml" />
	<link>http://krisselden.com</link>
	<description>Focused on software development.</description>
	<lastBuildDate>Thu, 27 Mar 2008 03:06:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Square inscribed on a wedge (Updated)</title>
		<link>http://krisselden.com/2007/03/01/square-inscribed-on-a-wedge/</link>
		<comments>http://krisselden.com/2007/03/01/square-inscribed-on-a-wedge/#comments</comments>
		<pubDate>Thu, 01 Mar 2007 05:24:17 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[wpf]]></category>

		<guid isPermaLink="false">http://krisselden.com/2007/03/01/square-inscribed-on-a-wedge/</guid>
		<description><![CDATA[My first xbap (works in IE only with .Net 3.0).
public static Rect GetSquareInscribedOnWedge(double a, double r, Point center)
{
    double t = Math.Tan(a/2);
    double x = Math.Sqrt(r*r/(1/(t*t) + 4/t + 5));
    return new Rect(center.X - x, center.Y - x/t - 2*x, 2*x, 2*x);
}
I&#8217;m too tired to say [...]]]></description>
			<content:encoded><![CDATA[<p>My first <a href="http://www.krisselden.com/wp-content/uploads/SquareInscribedOnWedge.xbap">xbap</a> (works in IE only with .Net 3.0).</p>
<pre class="line5"><code>public static Rect GetSquareInscribedOnWedge(double a, double r, Point center)
{
    double t = Math.Tan(a/2);
    double x = Math.Sqrt(r*r/(1/(t*t) + 4/t + 5));
    return new Rect(center.X - x, center.Y - x/t - 2*x, 2*x, 2*x);
}</code></pre>
<p>I&#8217;m too tired to say anything about it. I&#8217;ll write more later.</p>
]]></content:encoded>
			<wfw:commentRss>http://krisselden.com/2007/03/01/square-inscribed-on-a-wedge/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
