<?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>Randomizing Discovery // Life :: Work :: Play &#187; vector math</title>
	<atom:link href="http://www.randomizingdiscovery.com/tag/vector-math/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.randomizingdiscovery.com</link>
	<description>Exploring basic programmatic concepts to create complex visualizations. The work and experiments of Corey Hankey. Processing, Actionscript,  Web Development.</description>
	<lastBuildDate>Sat, 06 Mar 2010 19:39:52 +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>Adding Vector Math</title>
		<link>http://www.randomizingdiscovery.com/2008/02/26/adding-vector-math/</link>
		<comments>http://www.randomizingdiscovery.com/2008/02/26/adding-vector-math/#comments</comments>
		<pubDate>Tue, 26 Feb 2008 07:59:32 +0000</pubDate>
		<dc:creator>chankey</dc:creator>
				<category><![CDATA[Discoveries]]></category>
		<category><![CDATA[brownian movement]]></category>
		<category><![CDATA[Processing]]></category>
		<category><![CDATA[vector math]]></category>

		<guid isPermaLink="false">http://www.coreyhankey.com/?p=13</guid>
		<description><![CDATA[
After a weekend of skiing with my wife I decided it was time to get back to it and add some controls to my previous experiments. After tweaking the last few sketches  I decided that I did not have enough control over the brownian particles that were being added to the stage. I took [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/hankeys/2292735877/" title="Brownian Movement get vectors by Corey Hankey, on Flickr"><img src="http://farm3.static.flickr.com/2356/2292735877_c97a7860cd.jpg" alt="Brownian Movement get vectors" height="317" width="500" /></a></p>
<p>After a weekend of skiing with my wife I decided it was time to get back to it and add some controls to my previous experiments. After tweaking the last few sketches  I decided that I did not have enough control over the brownian particles that were being added to the stage. I took some time to look at how I could apply forces to the particles which quickly lead me to vector math.</p>
<p>Comparing vector math on paper to vector math inside a programming environment seems like a formidable challenge but it  was easier than I  expected. With a little trig and some basic vector equations I was able to create a pulling force on each particle that would always pull the particle towards its inital position. I have posted a simple example that shows the different vectors in action with source here: <a target="_blank" href="http://content.coreyhankey.com/brownian_vector_01">Brownian Motion w/ Vectors</a><br />
Unfortunately the majority of my time was spent trying to figure out how vectors worked instead of creating new visuals but you will notice that there is more control over the lines that are drawn to the screen in the images that I have posted. Hopefully I will get the the visuals in my next round of experiments. Here are a few samples:</p>
<p>Basic Blue lines with a randomSeed<br />
<a href="http://www.flickr.com/photos/hankeys/2293521102/" title="Brownian Movement get vectors by Corey Hankey, on Flickr"><img src="http://farm3.static.flickr.com/2351/2293521102_d215322296.jpg" alt="Brownian Movement get vectors" height="317" width="500" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.randomizingdiscovery.com/2008/02/26/adding-vector-math/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
