<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Hrj9408's Blog</title>
	<atom:link href="http://hrj9408.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://hrj9408.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Fri, 24 Jul 2009 13:14:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='hrj9408.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Hrj9408's Blog</title>
		<link>http://hrj9408.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://hrj9408.wordpress.com/osd.xml" title="Hrj9408&#039;s Blog" />
	<atom:link rel='hub' href='http://hrj9408.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Signature</title>
		<link>http://hrj9408.wordpress.com/2009/05/29/131/</link>
		<comments>http://hrj9408.wordpress.com/2009/05/29/131/#comments</comments>
		<pubDate>Fri, 29 May 2009 12:13:04 +0000</pubDate>
		<dc:creator>Heather</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hrj9408.wordpress.com/?p=131</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hrj9408.wordpress.com&amp;blog=6103760&amp;post=131&amp;subd=hrj9408&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-130" title="signature" src="http://hrj9408.files.wordpress.com/2009/05/signature.jpg?w=450" alt="signature"   /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hrj9408.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hrj9408.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hrj9408.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hrj9408.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hrj9408.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hrj9408.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hrj9408.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hrj9408.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hrj9408.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hrj9408.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hrj9408.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hrj9408.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hrj9408.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hrj9408.wordpress.com/131/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hrj9408.wordpress.com&amp;blog=6103760&amp;post=131&amp;subd=hrj9408&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hrj9408.wordpress.com/2009/05/29/131/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e299915353e3d663a6b293e66e91cdf2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Heather</media:title>
		</media:content>

		<media:content url="http://hrj9408.files.wordpress.com/2009/05/signature.jpg" medium="image">
			<media:title type="html">signature</media:title>
		</media:content>
	</item>
		<item>
		<title>Project 3</title>
		<link>http://hrj9408.wordpress.com/2009/05/04/project-3/</link>
		<comments>http://hrj9408.wordpress.com/2009/05/04/project-3/#comments</comments>
		<pubDate>Mon, 04 May 2009 19:06:55 +0000</pubDate>
		<dc:creator>Heather</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hrj9408.wordpress.com/?p=120</guid>
		<description><![CDATA[if you want to see my stuff, email me<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hrj9408.wordpress.com&amp;blog=6103760&amp;post=120&amp;subd=hrj9408&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>if you want to see my stuff, <a href="hrj9408@uncw.edu">email me</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hrj9408.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hrj9408.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hrj9408.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hrj9408.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hrj9408.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hrj9408.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hrj9408.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hrj9408.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hrj9408.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hrj9408.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hrj9408.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hrj9408.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hrj9408.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hrj9408.wordpress.com/120/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hrj9408.wordpress.com&amp;blog=6103760&amp;post=120&amp;subd=hrj9408&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hrj9408.wordpress.com/2009/05/04/project-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e299915353e3d663a6b293e66e91cdf2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Heather</media:title>
		</media:content>
	</item>
		<item>
		<title>Project 2</title>
		<link>http://hrj9408.wordpress.com/2009/04/10/project-2/</link>
		<comments>http://hrj9408.wordpress.com/2009/04/10/project-2/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 03:02:00 +0000</pubDate>
		<dc:creator>Heather</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hrj9408.wordpress.com/?p=113</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hrj9408.wordpress.com&amp;blog=6103760&amp;post=113&amp;subd=hrj9408&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://student.uncw.edu/hrj9408/Project 2.exe"><img class="alignnone size-full wp-image-116" title="project-21" src="http://hrj9408.files.wordpress.com/2009/04/project-21.jpg?w=450&#038;h=334" alt="project-21" width="450" height="334" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hrj9408.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hrj9408.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hrj9408.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hrj9408.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hrj9408.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hrj9408.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hrj9408.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hrj9408.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hrj9408.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hrj9408.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hrj9408.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hrj9408.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hrj9408.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hrj9408.wordpress.com/113/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hrj9408.wordpress.com&amp;blog=6103760&amp;post=113&amp;subd=hrj9408&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hrj9408.wordpress.com/2009/04/10/project-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e299915353e3d663a6b293e66e91cdf2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Heather</media:title>
		</media:content>

		<media:content url="http://hrj9408.files.wordpress.com/2009/04/project-21.jpg" medium="image">
			<media:title type="html">project-21</media:title>
		</media:content>
	</item>
		<item>
		<title>Assignment 5</title>
		<link>http://hrj9408.wordpress.com/2009/04/06/assignment-5/</link>
		<comments>http://hrj9408.wordpress.com/2009/04/06/assignment-5/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 05:27:04 +0000</pubDate>
		<dc:creator>Heather</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hrj9408.wordpress.com/?p=110</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hrj9408.wordpress.com&amp;blog=6103760&amp;post=110&amp;subd=hrj9408&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-111" title="assignment5" src="http://hrj9408.files.wordpress.com/2009/04/assignment5.jpg?w=450&#038;h=337" alt="assignment5" width="450" height="337" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hrj9408.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hrj9408.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hrj9408.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hrj9408.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hrj9408.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hrj9408.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hrj9408.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hrj9408.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hrj9408.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hrj9408.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hrj9408.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hrj9408.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hrj9408.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hrj9408.wordpress.com/110/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hrj9408.wordpress.com&amp;blog=6103760&amp;post=110&amp;subd=hrj9408&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hrj9408.wordpress.com/2009/04/06/assignment-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e299915353e3d663a6b293e66e91cdf2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Heather</media:title>
		</media:content>

		<media:content url="http://hrj9408.files.wordpress.com/2009/04/assignment5.jpg" medium="image">
			<media:title type="html">assignment5</media:title>
		</media:content>
	</item>
		<item>
		<title>Web Exercise 3</title>
		<link>http://hrj9408.wordpress.com/2009/03/23/opengl-example-31/</link>
		<comments>http://hrj9408.wordpress.com/2009/03/23/opengl-example-31/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 23:04:45 +0000</pubDate>
		<dc:creator>Heather</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hrj9408.wordpress.com/?p=91</guid>
		<description><![CDATA[#include &#8220;C:/Documents and Settings/School/My Documents/Computer Graphics/Open GL/shared/gltools.h&#8221; #include &#60;GL/glut.h&#62; #include &#60;stdlib.h&#62; #define GL_PI 3.1415f static GLfloat xRot = 0.0f; static GLfloat yRot = 0.0f; void init(void) { glClearColor (0.0, 0.0, 0.0, 0.0); glShadeModel (GL_FLAT); } void display(void) { glClear (GL_COLOR_BUFFER_BIT); glColor3f (1.0, 1.0, 1.0); glLoadIdentity ();             /* clear the matrix */ /* viewing transformation  */ [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hrj9408.wordpress.com&amp;blog=6103760&amp;post=91&amp;subd=hrj9408&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://student.uncw.edu/hrj9408/Project2a.exe"><img class="alignnone size-full wp-image-98" title="project2" src="http://hrj9408.files.wordpress.com/2009/03/project24.jpg?w=450&#038;h=101" alt="project2" width="450" height="101" /></a></p>
<p>#include &#8220;C:/Documents and Settings/School/My Documents/Computer Graphics/Open GL/shared/gltools.h&#8221;</p>
<p>#include &lt;GL/glut.h&gt;<br />
#include &lt;stdlib.h&gt;</p>
<p>#define GL_PI 3.1415f</p>
<p>static GLfloat xRot = 0.0f;<br />
static GLfloat yRot = 0.0f;</p>
<p>void init(void)<br />
{<br />
glClearColor (0.0, 0.0, 0.0, 0.0);<br />
glShadeModel (GL_FLAT);<br />
}</p>
<p>void display(void)<br />
{<br />
glClear (GL_COLOR_BUFFER_BIT);<br />
glColor3f (1.0, 1.0, 1.0);<br />
glLoadIdentity ();             /* clear the matrix */<br />
/* viewing transformation  */<br />
gluLookAt (0.0, 0.0, 5.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0);<br />
glScalef (1.0, 2.0, 1.0);      /* modeling transformation */<br />
glRotatef(xRot, 1.0f, 0.0f, 0.0f);<br />
glRotatef(yRot, 0.0f, 1.0f, 0.0f);<br />
glutWireCube (1.0);<br />
glFlush ();<br />
}</p>
<p>void reshape (int w, int h)<br />
{<br />
glViewport (0, 0, (GLsizei) w, (GLsizei) h);<br />
glMatrixMode (GL_PROJECTION);<br />
glLoadIdentity ();<br />
glFrustum (-1.0, 1.0, -1.0, 1.0, 1.5, 20.0);<br />
glMatrixMode (GL_MODELVIEW);<br />
}</p>
<p>void RenderScene(void)<br />
{<br />
GLfloat x,y,z,angle; // Storeage for coordinates and angles</p>
<p>// Clear the window with current clearing color<br />
glClear(GL_COLOR_BUFFER_BIT);</p>
<p>// Save matrix state and do the rotation<br />
glPushMatrix();<br />
glRotatef(xRot, 1.0f, 0.0f, 0.0f);<br />
glRotatef(yRot, 0.0f, 1.0f, 0.0f);</p>
<p>// Call only once for all remaining points<br />
glBegin(GL_LINES);</p>
<p>z = 0.0f;<br />
for(angle = 0.0f; angle &lt;= GL_PI; angle += (GL_PI / 20.0f))<br />
{<br />
// Top half of the circle<br />
x = 50.0f*sin(angle);<br />
y = 50.0f*cos(angle);<br />
glVertex3f(x, y, z);</p>
<p>// Bottom half of the circle<br />
x = 50.0f*sin(angle+GL_PI);<br />
y = 50.0f*cos(angle+GL_PI);<br />
glVertex3f(x, y, z);<br />
}</p>
<p>// Done drawing points<br />
glEnd();</p>
<p>// Restore transformations<br />
glPopMatrix();</p>
<p>// Flush drawing commands<br />
glutSwapBuffers();<br />
}</p>
<p>void SetupRC()<br />
{<br />
// Black background<br />
glClearColor(0.0f, 0.0f, 0.0f, 1.0f );</p>
<p>// Set drawing color to green<br />
glColor3f(0.0f, 1.0f, 0.0f);<br />
}</p>
<p>void SpecialKeys(int key, int x, int y)<br />
{<br />
if(key == GLUT_KEY_UP)<br />
xRot-= 5.0f;</p>
<p>if(key == GLUT_KEY_DOWN)<br />
xRot += 5.0f;</p>
<p>if(key == GLUT_KEY_LEFT)<br />
yRot -= 5.0f;</p>
<p>if(key == GLUT_KEY_RIGHT)<br />
yRot += 5.0f;</p>
<p>if(key &gt; 356.0f)<br />
xRot = 0.0f;</p>
<p>if(key &lt; -1.0f)<br />
xRot = 355.0f;</p>
<p>if(key &gt; 356.0f)<br />
yRot = 0.0f;</p>
<p>if(key &lt; -1.0f)<br />
yRot = 355.0f;</p>
<p>// Refresh the Window<br />
glutPostRedisplay();<br />
}</p>
<p>void ChangeSize(int w, int h)<br />
{<br />
GLfloat nRange = 100.0f;</p>
<p>// Prevent a divide by zero<br />
if(h == 0)<br />
h = 1;</p>
<p>// Set Viewport to window dimensions<br />
glViewport(0, 0, w, h);</p>
<p>// Reset coordinate system<br />
glMatrixMode(GL_PROJECTION);<br />
glLoadIdentity();</p>
<p>// Establish clipping volume (left, right, bottom, top, near, far)<br />
if (w &lt;= h)<br />
glOrtho (-nRange, nRange, -nRange*h/w, nRange*h/w, -nRange, nRange);<br />
else<br />
glOrtho (-nRange*w/h, nRange*w/h, -nRange, nRange, -nRange, nRange);</p>
<p>glMatrixMode(GL_MODELVIEW);<br />
glLoadIdentity();<br />
}</p>
<p>int main(int argc, char** argv)<br />
{<br />
glutInit(&amp;argc, argv);<br />
glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB);<br />
glutInitWindowSize (500, 500);<br />
glutInitWindowPosition (100, 100);<br />
glutCreateWindow (&#8220;My Creation&#8221;);<br />
glutReshapeFunc(ChangeSize);<br />
glutSpecialFunc(SpecialKeys);<br />
init ();<br />
glutDisplayFunc(display);<br />
glutReshapeFunc(reshape);<br />
SetupRC();<br />
glutMainLoop();<br />
return 0;<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hrj9408.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hrj9408.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hrj9408.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hrj9408.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hrj9408.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hrj9408.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hrj9408.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hrj9408.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hrj9408.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hrj9408.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hrj9408.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hrj9408.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hrj9408.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hrj9408.wordpress.com/91/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hrj9408.wordpress.com&amp;blog=6103760&amp;post=91&amp;subd=hrj9408&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hrj9408.wordpress.com/2009/03/23/opengl-example-31/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e299915353e3d663a6b293e66e91cdf2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Heather</media:title>
		</media:content>

		<media:content url="http://hrj9408.files.wordpress.com/2009/03/project24.jpg" medium="image">
			<media:title type="html">project2</media:title>
		</media:content>
	</item>
		<item>
		<title>Web Exercise 2</title>
		<link>http://hrj9408.wordpress.com/2009/03/18/opengl-bezier/</link>
		<comments>http://hrj9408.wordpress.com/2009/03/18/opengl-bezier/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 14:30:36 +0000</pubDate>
		<dc:creator>Heather</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hrj9408.wordpress.com/?p=76</guid>
		<description><![CDATA[OpenGL is a vastly growing API for 2D and 3D graphics and is used in systems such as gaming consoles, mobile devices, hand held media players and other applications.  OpenGL cuts out reduncies and rarely used features making it easy to learn, more reliable, and more efficient.  New programing languages such as Processing are able [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hrj9408.wordpress.com&amp;blog=6103760&amp;post=76&amp;subd=hrj9408&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>OpenGL is a vastly growing API for 2D and 3D graphics and is used in systems such as gaming consoles, mobile devices, hand held media players and other applications.  OpenGL cuts out reduncies and rarely used features making it easy to learn, more reliable, and more efficient.  New programing languages such as Processing are able to interface with OpenGL and utilize OpenGL&#8217;s accelerated graphics card.  Other languages such as Python as are also able to utilze OpenGL.</p>
<p><a href="http://student.uncw.edu/hrj9408/Project1.exe"><img class="alignnone size-full wp-image-81" title="bezier-curve" src="http://hrj9408.files.wordpress.com/2009/03/bezier-curve.jpg?w=450" alt="bezier-curve"   /></a></p>
<p>The line of code necessary to draw the Bézier curve was brought in straight from my processing assignment3.  See below:</p>
<p>glVertex3f((pow((1-t), 3) * x1a) + (3 * (pow((1-t), 2)) * t * x2a) + (3 * (1-t) * pow(t, 2) * x3a) + (pow(t, 3) * x4a), (pow((1-t), 3) * y1a) + (3 * (pow((1-t), 2)) * t * y2a) + (3 * (1-t) * pow(t, 2) * y3a) + (pow(t, 3) * y4a), z);<br />
z += .5f;<br />
t += .01f;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hrj9408.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hrj9408.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hrj9408.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hrj9408.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hrj9408.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hrj9408.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hrj9408.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hrj9408.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hrj9408.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hrj9408.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hrj9408.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hrj9408.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hrj9408.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hrj9408.wordpress.com/76/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hrj9408.wordpress.com&amp;blog=6103760&amp;post=76&amp;subd=hrj9408&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hrj9408.wordpress.com/2009/03/18/opengl-bezier/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e299915353e3d663a6b293e66e91cdf2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Heather</media:title>
		</media:content>

		<media:content url="http://hrj9408.files.wordpress.com/2009/03/bezier-curve.jpg" medium="image">
			<media:title type="html">bezier-curve</media:title>
		</media:content>
	</item>
		<item>
		<title>Project 1</title>
		<link>http://hrj9408.wordpress.com/2009/03/03/project-1/</link>
		<comments>http://hrj9408.wordpress.com/2009/03/03/project-1/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 14:34:54 +0000</pubDate>
		<dc:creator>Heather</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hrj9408.wordpress.com/?p=56</guid>
		<description><![CDATA[Credits Circle Intersection Solver for helping me understand the distance formula and using it to test and see if circles were intersecting. Haeden H Howland for helping me understand hue by giving me a brief lesson using Photoshop. Anthony Mattox for giving me an art reference to base my program off of.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hrj9408.wordpress.com&amp;blog=6103760&amp;post=56&amp;subd=hrj9408&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-69" title="Mock" src="http://hrj9408.files.wordpress.com/2009/03/take-2.jpg?w=450" alt="Mock"   /></p>
<p><img class="alignnone size-full wp-image-70" title="Intersections" src="http://hrj9408.files.wordpress.com/2009/03/take-4.jpg?w=450" alt="Intersections"   /></p>
<p><a href="http://student.uncw.edu/hrj9408/Blog_6.jar"><img class="alignnone size-full wp-image-66" title="Circle" src="http://hrj9408.files.wordpress.com/2009/03/blog-6_12.jpg?w=450" alt="Circle"   /></a></p>
<p><a href="http://student.uncw.edu/hrj9408/blog_6.jar"><img class="alignnone size-full wp-image-71" title="My Creation" src="http://hrj9408.files.wordpress.com/2009/03/take-3.jpg?w=450" alt="My Creation"   /></a></p>
<p><strong>Credits</strong></p>
<ul>
<li><a href="http://home.att.net/%7Esrschmitt/script_circle_intersections.html">Circle Intersection Solver</a> for helping me understand the distance formula and using it to test and see if circles were intersecting.</li>
<li><a href="http://haedencomputergraphics.blogspot.com/">Haeden H Howland</a> for helping me understand hue by giving me a brief lesson using Photoshop.</li>
<li><a href="http://www.anthonymattox.com/cell-cluster-circles">Anthony Mattox</a> for giving me an art reference to base my program off of.</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hrj9408.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hrj9408.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hrj9408.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hrj9408.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hrj9408.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hrj9408.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hrj9408.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hrj9408.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hrj9408.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hrj9408.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hrj9408.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hrj9408.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hrj9408.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hrj9408.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hrj9408.wordpress.com&amp;blog=6103760&amp;post=56&amp;subd=hrj9408&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hrj9408.wordpress.com/2009/03/03/project-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e299915353e3d663a6b293e66e91cdf2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Heather</media:title>
		</media:content>

		<media:content url="http://hrj9408.files.wordpress.com/2009/03/take-2.jpg" medium="image">
			<media:title type="html">Mock</media:title>
		</media:content>

		<media:content url="http://hrj9408.files.wordpress.com/2009/03/take-4.jpg" medium="image">
			<media:title type="html">Intersections</media:title>
		</media:content>

		<media:content url="http://hrj9408.files.wordpress.com/2009/03/blog-6_12.jpg" medium="image">
			<media:title type="html">Circle</media:title>
		</media:content>

		<media:content url="http://hrj9408.files.wordpress.com/2009/03/take-3.jpg" medium="image">
			<media:title type="html">My Creation</media:title>
		</media:content>
	</item>
		<item>
		<title>Assignment 4</title>
		<link>http://hrj9408.wordpress.com/2009/02/16/assignment-5-2/</link>
		<comments>http://hrj9408.wordpress.com/2009/02/16/assignment-5-2/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 05:40:06 +0000</pubDate>
		<dc:creator>Heather</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hrj9408.wordpress.com/?p=52</guid>
		<description><![CDATA[int x1 = -1, x2 = -1, x3 = -1, y1 = -1, y2 = -1, y3 = -1; float midpoint1, midpoint2, centriodX, centriodY; Boolean drawing = true; float count = (PI/2.0); float[][] result1, result2, result3; void setup () { size(600, 600); } void mousePressed () { if (drawing) { if (x1 == -1) { [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hrj9408.wordpress.com&amp;blog=6103760&amp;post=52&amp;subd=hrj9408&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://student.uncw.edu/hrj9408/Blog_5.jar"><img class="alignnone size-full wp-image-87" title="blog-picture-5" src="http://hrj9408.files.wordpress.com/2009/02/blog-picture-5.jpg?w=450&#038;h=461" alt="blog-picture-5" width="450" height="461" /><br />
</a></p>
<p>int x1 = -1, x2 = -1, x3 = -1, y1 = -1, y2 = -1, y3 = -1;<br />
float midpoint1, midpoint2, centriodX, centriodY;<br />
Boolean drawing = true;<br />
float count  = (PI/2.0);<br />
float[][] result1, result2, result3;</p>
<p>void setup ()   {<br />
size(600, 600);<br />
}</p>
<p>void mousePressed () {<br />
if (drawing) {<br />
if (x1 == -1) {<br />
x1 = mouseX;<br />
y1 = mouseY;<br />
}<br />
else if (x2 == -1) {<br />
x2 = mouseX;<br />
y2 = mouseY;<br />
}<br />
else if (x3 == -1) {<br />
x3 = mouseX;<br />
y3 = mouseY;<br />
}<br />
}</p>
<p>centriodX = (.3333333)*(x1 + x2 + x3);<br />
centriodY = (.3333333)*(y1 + y2 + y3);</p>
<p>if (x3 != -1 &amp;&amp; count &lt; (2*PI)) {<br />
if (count == (PI/2)) {<br />
println (&#8220;Point1 &#8221; + x1 + &#8220;, &#8221; + y1);<br />
println (&#8220;Point2 &#8221; + x2 + &#8220;, &#8221; + y2);<br />
println (&#8220;Point3 &#8221; + x3 + &#8220;, &#8221; + y3);</p>
<p>println(&#8220;MP &#8221; + centriodX + &#8220;, &#8221; + centriodY);</p>
<p>strokeWeight(1);<br />
fill(1);<br />
triangle(x1, y1, x2, y2, x3, y3);</p>
<p>//      strokeWeight(5);<br />
//      stroke(255);<br />
point(centriodX, centriodY);</p>
<p>float[][] triANGLE = {<br />
{<br />
x1, x2, x3                }<br />
, {<br />
y1, y2, y3                }<br />
, {<br />
1, 1, 1                }<br />
};</p>
<p>float[][] firstTrans = translate2Origin(centriodX, centriodY);<br />
println(&#8220;Translate to origin&#8221;);<br />
result1 = matrixMult(firstTrans, triANGLE);<br />
}</p>
<p>float[][] rotateMatrix = {<br />
{<br />
round(cos(count)), round(-sin(count)), 0              }<br />
, {<br />
round(sin(count)), round(cos(count)), 0              }<br />
, {<br />
0, 0, 1              }<br />
};</p>
<p>println(&#8220;Rotate&#8221;);<br />
float[][] result2 = matrixMult(rotateMatrix, result1);</p>
<p>float[][] secTrans = translate2mp(centriodX, centriodY);</p>
<p>println(&#8220;Translate to mp&#8221;);<br />
float[][] result3 = matrixMult(secTrans, result2);</p>
<p>noFill();<br />
triangle(result3[0][0], result3[1][0], result3[0][1], result3[1][1], result3[0][2], result3[1][2]);</p>
<p>count = count + (PI/2);</p>
<p>}</p>
<p>}</p>
<p>void draw() {</p>
<p>}</p>
<p>float[][] matrixMult (float[][] a, float[][] b) {<br />
float[][] c = new float[a.length][b[0].length];</p>
<p>for (int i = 0; i &lt; b.length; i++) {<br />
for (int j = 0; j &lt; a[0].length; j++) {<br />
for (int k = 0; k &lt; b.length; k ++) {<br />
c[i][j] += a[i][k] * b[k][j];<br />
}<br />
print(&#8220;C &#8221; + c[i][j] + &#8221; &#8220;);<br />
}<br />
println(&#8221; &#8220;);<br />
}</p>
<p>return c;<br />
}</p>
<p>float[][] translate2Origin (float a, float b) {<br />
float[][] trans = {<br />
{<br />
1, 0, -a        }<br />
, {<br />
0, 1, -b        }<br />
, {<br />
0, 0, 1        }<br />
};<br />
for (int i = 0; i &lt; trans.length; i++) {<br />
for (int j = 0; j &lt; trans[0].length; j++) {<br />
//      println(&#8220;making sure it&#8217;s negated &#8221; + trans[i][j]);<br />
}<br />
}<br />
return trans;<br />
}</p>
<p>float[][] translate2mp (float a, float b) {<br />
float[][] trans = {<br />
{<br />
1, 0, a        }<br />
, {<br />
0, 1, b        }<br />
, {<br />
0, 0, 1        }<br />
};</p>
<p>return trans;<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hrj9408.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hrj9408.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hrj9408.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hrj9408.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hrj9408.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hrj9408.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hrj9408.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hrj9408.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hrj9408.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hrj9408.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hrj9408.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hrj9408.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hrj9408.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hrj9408.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hrj9408.wordpress.com&amp;blog=6103760&amp;post=52&amp;subd=hrj9408&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hrj9408.wordpress.com/2009/02/16/assignment-5-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e299915353e3d663a6b293e66e91cdf2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Heather</media:title>
		</media:content>

		<media:content url="http://hrj9408.files.wordpress.com/2009/02/blog-picture-5.jpg" medium="image">
			<media:title type="html">blog-picture-5</media:title>
		</media:content>
	</item>
		<item>
		<title>Assignment 3</title>
		<link>http://hrj9408.wordpress.com/2009/02/02/assignment-4/</link>
		<comments>http://hrj9408.wordpress.com/2009/02/02/assignment-4/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 04:33:45 +0000</pubDate>
		<dc:creator>Heather</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hrj9408.wordpress.com/?p=43</guid>
		<description><![CDATA[Open Me!!&#8230; and me too!!! float x1, y1, x2, y2, x3, y3; float Xmin = 180.0; float Xmax = 540.0; float Ymin = 120.0; float Ymax = 360.0; int count = 0; void setup () { noStroke(); size(720, 480); background(70); fill(0); rectMode(CENTER); rect(360, 240, 360, 240); } void mousePressed () { x1 = random(0, 720); [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hrj9408.wordpress.com&amp;blog=6103760&amp;post=43&amp;subd=hrj9408&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://student.uncw.edu/hrj9408/Blog_4.jar">Open Me!!</a>&#8230; <a href="http://student.uncw.edu/hrj9408/Blog_4_2.jar">and me too!!!</a></p>
<p>float x1, y1, x2, y2, x3, y3;<br />
float Xmin = 180.0;<br />
float Xmax = 540.0;<br />
float Ymin = 120.0;<br />
float Ymax = 360.0;</p>
<p>int count = 0; </p>
<p>void setup () {<br />
  noStroke();<br />
  size(720, 480);<br />
  background(70);<br />
  fill(0);<br />
  rectMode(CENTER);<br />
  rect(360, 240, 360, 240);<br />
}</p>
<p>void mousePressed () {<br />
  x1 = random(0, 720);<br />
  y1 = random(0, 480);<br />
  x2 = random(0, 720);<br />
  y2 = random(0, 480);<br />
  x3 = random(0, 720);<br />
  y3 = random(0, 480);</p>
<p>  if (count &lt; 100) {<br />
      setup();<br />
      stroke(204, 102, 0);<br />
      strokeWeight(3);<br />
      noFill();<br />
      clip(x1, y1, x2, y2);<br />
      clip(x2, y2, x3, y3);<br />
      clip(x1, y1, x3, y3); </p>
<p>  }<br />
  count++;<br />
}</p>
<p>void draw () {</p>
<p>}</p>
<p>void clip (float Xp, float Yp, float Xb, float Yb) {<br />
  int[] Bp = new int[4];<br />
  for (int i = 0; i &lt; Bp.length; i++) {<br />
    Bp[i] = 0;<br />
  }</p>
<p>  if (Xp  Xmax) {<br />
    Bp[1] = 1;<br />
  }</p>
<p>  if (Yp  Ymax) {<br />
    Bp[3] = 1;<br />
  }</p>
<p>  int[] Bq = new int[4];<br />
  for (int i = 0; i &lt; Bq.length; i++) {<br />
    Bq[i] = 0;<br />
  }</p>
<p>  if (Xb  Xmax) {<br />
    Bq[1] = 1;<br />
  }</p>
<p>  if (Yb  Ymax) {<br />
    Bq[3] = 1;<br />
  }</p>
<p>  int[] or = new int[4];<br />
  for (int i = 0; i &lt; Bp.length ; i++) {<br />
    or[i] = (Bp[i] | Bq[i]);<br />
  } </p>
<p>  int[] and = new int[4];<br />
  for (int i = 0; i &lt; Bp.length ; i++) {<br />
    and[i] = (Bp[i] &amp; Bq[i]);<br />
  }</p>
<p>  if(or[0] == 0 &amp;&amp; or[1] == 0 &amp;&amp; or[2] == 0 &amp;&amp; or[3] == 0) {</p>
<p>    stroke(204, 102, 0);<br />
    line(Xp, Yp, Xb, Yb);</p>
<p>  } else if(and[0] != 0 || and[1] != 0 || and[2] != 0 || and[3] != 0) {</p>
<p>  } else {</p>
<p>        float tempXp = Xp;<br />
        float tempYp = Yp;<br />
        float tempXb = Xb;<br />
        float tempYb = Yb;</p>
<p>        if (Bp[0] == 1) {<br />
          tempYp = Yp + (Yb &#8211; Yp) * (Xmin &#8211; Xp) / (Xb &#8211; Xp);<br />
          tempXp = Xmin;<br />
        } else if (Bp[1] == 1) {<br />
            tempYp = Yp + (Yb &#8211; Yp) * (Xmax &#8211; Xp) / (Xb &#8211; Xp);<br />
            tempXp = Xmax;<br />
        } </p>
<p>        if (Bp[2] == 1) {<br />
            if (tempYp  Ymax) {<br />
              tempXp = Xp + (Xb &#8211; Xp) * (Ymin &#8211; Yp) / (Yb &#8211; Yp);<br />
              tempYp = Ymin;<br />
            }<br />
        }  else if (Bp[3] == 1) {<br />
            if (tempYp &gt; Ymax || tempYp &lt; Ymin) {<br />
              tempXp = Xp + (Xb &#8211; Xp) * (Ymax &#8211; Yp) / (Yb &#8211; Yp);<br />
              tempYp = Ymax;<br />
            }<br />
        }</p>
<p>        if (Bq[0] == 1) {<br />
          tempYb = Yp + (Yb &#8211; Yp) * (Xmin &#8211; Xp) / (Xb &#8211; Xp);<br />
          tempXb = Xmin;<br />
        } else if (Bq[1] == 1) {<br />
            tempYb = Yp + (Yb &#8211; Yp) * (Xmax &#8211; Xp) / (Xb &#8211; Xp);<br />
            tempXb = Xmax;<br />
        } </p>
<p>        if (Bq[2] == 1) {<br />
            if (tempYb  Ymax) {<br />
              tempXb = Xp + (Xb &#8211; Xp) * (Ymin &#8211; Yp) / (Yb &#8211; Yp);<br />
              tempYb = Ymin;<br />
            }<br />
        }  else if (Bq[3] == 1) {<br />
            if (tempYb &gt; Ymax || tempYb = Xmin &amp;&amp; tempXp = Xmin &amp;&amp; tempXb = Ymin &amp;&amp; tempYp = Ymin &amp;&amp; tempYb &lt;= Ymax) {<br />
            line(tempXp, tempYp, tempXb, tempYb);<br />
          }<br />
        }  </p>
<p>  }<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hrj9408.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hrj9408.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hrj9408.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hrj9408.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hrj9408.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hrj9408.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hrj9408.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hrj9408.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hrj9408.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hrj9408.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hrj9408.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hrj9408.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hrj9408.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hrj9408.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hrj9408.wordpress.com&amp;blog=6103760&amp;post=43&amp;subd=hrj9408&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hrj9408.wordpress.com/2009/02/02/assignment-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e299915353e3d663a6b293e66e91cdf2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Heather</media:title>
		</media:content>
	</item>
		<item>
		<title>Web Exercise 1</title>
		<link>http://hrj9408.wordpress.com/2009/01/23/assignment-3-2/</link>
		<comments>http://hrj9408.wordpress.com/2009/01/23/assignment-3-2/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 03:52:13 +0000</pubDate>
		<dc:creator>Heather</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hrj9408.wordpress.com/?p=39</guid>
		<description><![CDATA[float x1a = 40; float y1a = 70; float x1b = 100; float y1b = 590; float x2a = 150; float y2a = 222; float x2b = 590; float y2b = 590; float x3a = 486; float y3a = 50; float x3b = 500; float y3b = 333; float x4a = 555; float y4a = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hrj9408.wordpress.com&amp;blog=6103760&amp;post=39&amp;subd=hrj9408&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-40" title="blogimage3" src="http://hrj9408.files.wordpress.com/2009/01/blogimage34.jpg?w=450&#038;h=453" alt="blogimage3" width="450" height="453" /></p>
<p>float x1a = 40;<br />
float y1a = 70;<br />
float x1b = 100;<br />
float y1b = 590;<br />
float x2a = 150;<br />
float y2a = 222;<br />
float x2b = 590;<br />
float y2b = 590;<br />
float x3a = 486;<br />
float y3a = 50;<br />
float x3b = 500;<br />
float y3b = 333;<br />
float x4a = 555;<br />
float y4a = 113;<br />
float x4b = 300;<br />
float y4b = 400;<br />
float i;<br />
float z1, w1, z2, w2, z3, w3;</p>
<p>void setup () {<br />
size(600, 600);<br />
}<br />
void draw() {<br />
point (x1a, y1a);<br />
point (x1b, y1b);<br />
point (x2a, y2a);<br />
point (x2b, y2b);<br />
point (x3a, y3a);<br />
point (x3b, y3b);<br />
point (x4a, y4a);<br />
point (x4b, y4b);</p>
<p>for (i = 0.0 ; i &lt; 1 ; i=i + 0.001) {<br />
myLine1(i);<br />
myLine2(i);<br />
myLine3(i);<br />
}<br />
}</p>
<p>void myLine1(float t) {</p>
<p>z1 = x1a + t * (x2a &#8211; x1a);<br />
w1 = y1a + t * (y2a &#8211; y1a);</p>
<p>z2 = x1b + t * (x2b &#8211; x1b);<br />
w2 = y3b + t * (y4b &#8211; y3b);</p>
<p>z3 = x3a + t * (x4a &#8211; x3a);<br />
w3 = y2a + t * (y3a &#8211; y2a);</p>
<p>point(z1, w1);<br />
point(z2, w2);<br />
point(z3, w3);</p>
<p>}</p>
<p>void myLine2(float t) {<br />
z1 = (pow((1-t), 2) * x1a) + (2 * (1-t) * t * x2a) + (pow(t, 2) * x3a);<br />
w1 = (pow((1-t), 2) * y1a) + (2 * (1-t) * t * y2a) + (pow(t, 2) * y3a);</p>
<p>z2 = (pow((1-t), 2) * x1b) + (2 * (1-t) * t * x2b) + (pow(t, 2) * x3b);<br />
w2 = (pow((1-t), 2) * y1b) + (2 * (1-t) * t * y2b) + (pow(t, 2) * y3b);</p>
<p>point(z1, w1);<br />
point(z2, w2);<br />
}</p>
<p>void myLine3(float t) {<br />
z1 = (pow((1-t), 3) * x1a) + (3 * (pow((1-t), 2)) * t * x2a) + (3 * (1-t) * pow(t, 2) * x3a) + (pow(t, 3) * x4a);<br />
w1 = (pow((1-t), 3) * y1a) + (3 * (pow((1-t), 2)) * t * y2a) + (3 * (1-t) * pow(t, 2) * y3a) + (pow(t, 3) * y4a);</p>
<p>z2 = (pow((1-t), 3) * x1b) + (3 * (pow((1-t), 2)) * t * x2b) + (3 * (1-t) * pow(t, 2) * x3b) + (pow(t, 3) * x4b);<br />
w2 = (pow((1-t), 3) * y1b) + (3 * (pow((1-t), 2)) * t * y2b) + (3 * (1-t) * pow(t, 2) * y3b) + (pow(t, 3) * y4b);</p>
<p>point(z1, w1);<br />
point(z2, w2);</p>
<p>}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hrj9408.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hrj9408.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hrj9408.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hrj9408.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hrj9408.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hrj9408.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hrj9408.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hrj9408.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hrj9408.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hrj9408.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hrj9408.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hrj9408.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hrj9408.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hrj9408.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hrj9408.wordpress.com&amp;blog=6103760&amp;post=39&amp;subd=hrj9408&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hrj9408.wordpress.com/2009/01/23/assignment-3-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e299915353e3d663a6b293e66e91cdf2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Heather</media:title>
		</media:content>

		<media:content url="http://hrj9408.files.wordpress.com/2009/01/blogimage34.jpg" medium="image">
			<media:title type="html">blogimage3</media:title>
		</media:content>
	</item>
	</channel>
</rss>
