<?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>aThematics &#187; Shape Grammars</title>
	<atom:link href="http://www.athematics.com/tag/shape-grammars/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.athematics.com</link>
	<description></description>
	<lastBuildDate>Mon, 26 Sep 2011 20:15:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Square Spinner: a shape grammar</title>
		<link>http://www.athematics.com/2009/11/square-spinner/</link>
		<comments>http://www.athematics.com/2009/11/square-spinner/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 23:51:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[My work]]></category>
		<category><![CDATA[Apps]]></category>
		<category><![CDATA[computation]]></category>
		<category><![CDATA[Shape Grammars]]></category>

		<guid isPermaLink="false">http://www.athematics.com/?p=39</guid>
		<description><![CDATA[Below is an applet that I made for Terry Knight&#8217;s Inquiry into Computation class. The intent is to, in an AI kind of way, probe into the ability of computers to do what people are naturally really good at. In this case, given a set of lines, the code finds squares and rotates them by [...]]]></description>
			<content:encoded><![CDATA[<p>Below is an applet that I made for Terry Knight&#8217;s Inquiry into Computation class.  The intent is to, in an AI kind of way, probe into the ability of computers to do what people are naturally really good at.  In this case, given a set of lines, the code finds squares and rotates them by 45º.  Considering the simplicity of the task and that it is a well defined task, the code was a real pain to write on account of lots of special cases.<br />
Incidentally, everything is done in exact terms with zero margin for floating point errors.  This is accomplished by storing points as pairs of elements in a <a href="http://mathworld.wolfram.com/QuadraticField.html">quadratic field</a>, <img src="http://www.athematics.com/wp-content/uploads/2009/11/56228.jpg" alt="Q of root D" title="Q of root D" width="47" height="22" class="size-full wp-image-110" /> with D=2.  This allows for 45º rotation while maintaining integer accuracy.  (the coefficients are rational, so they have integer accuracy.)<br />
All Java code is in this <a href="http://www.athematics.com/content/projects/squareSpinner/squareSpinner.rar">rar file</a></p>
<p><applet code="squareSpinner.SSApplet.class" width="600" height="500" archive= "http://www.athematics.com/content/projects/squareSpinner/SS.jar" > </applet> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.athematics.com/2009/11/square-spinner/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

