<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://inside.digipen.edu/index.php?action=history&amp;feed=atom&amp;title=GSDP%3AGAM100%2FCProcessing%2Fvec2_set%28%29</id>
	<title>GSDP:GAM100/CProcessing/vec2 set() - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://inside.digipen.edu/index.php?action=history&amp;feed=atom&amp;title=GSDP%3AGAM100%2FCProcessing%2Fvec2_set%28%29"/>
	<link rel="alternate" type="text/html" href="https://inside.digipen.edu/index.php?title=GSDP:GAM100/CProcessing/vec2_set()&amp;action=history"/>
	<updated>2026-06-19T07:35:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://inside.digipen.edu/index.php?title=GSDP:GAM100/CProcessing/vec2_set()&amp;diff=59513&amp;oldid=prev</id>
		<title>&gt;Zachary.logsdon at 15:51, 1 July 2019</title>
		<link rel="alternate" type="text/html" href="https://inside.digipen.edu/index.php?title=GSDP:GAM100/CProcessing/vec2_set()&amp;diff=59513&amp;oldid=prev"/>
		<updated>2019-07-01T15:51:59Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:51, 1 July 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot; &gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= vec2_set() =&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= vec2_set() =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Description ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Description ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Manually create a [[GSDP:GAM100/CProcessing/Vec2|Vec2]] vector by inputting &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;it&lt;/del&gt;'&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;s &lt;/del&gt;two values.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Manually create a [[GSDP:GAM100/CProcessing/Vec2|Vec2]] vector by inputting &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;its&lt;/ins&gt;' two values.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==== Parameters ====&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==== Parameters ====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key insidedb135-dpw135:diff::1.12:old-59507:rev-59513 --&gt;
&lt;/table&gt;</summary>
		<author><name>&gt;Zachary.logsdon</name></author>
	</entry>
	<entry>
		<id>https://inside.digipen.edu/index.php?title=GSDP:GAM100/CProcessing/vec2_set()&amp;diff=59507&amp;oldid=prev</id>
		<title>&gt;Zachary.logsdon: New page: {{GSDP:GAM100API.css}} = vec2_set() = == Description == Manually create a Vec2 vector by inputting it's two values.  ==== Parameters ==== vec2_set(float x,...</title>
		<link rel="alternate" type="text/html" href="https://inside.digipen.edu/index.php?title=GSDP:GAM100/CProcessing/vec2_set()&amp;diff=59507&amp;oldid=prev"/>
		<updated>2019-07-01T15:51:42Z</updated>

		<summary type="html">&lt;p&gt;New page: {{GSDP:GAM100API.css}} = vec2_set() = == Description == Manually create a &lt;a href=&quot;/main/GSDP:GAM100/CProcessing/Vec2&quot; title=&quot;GSDP:GAM100/CProcessing/Vec2&quot;&gt;Vec2&lt;/a&gt; vector by inputting it&amp;#039;s two values.  ==== Parameters ==== vec2_set(float x,...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{GSDP:GAM100API.css}}&lt;br /&gt;
= vec2_set() =&lt;br /&gt;
== Description ==&lt;br /&gt;
Manually create a [[GSDP:GAM100/CProcessing/Vec2|Vec2]] vector by inputting it's two values.&lt;br /&gt;
&lt;br /&gt;
==== Parameters ====&lt;br /&gt;
vec2_set(float x, float y)&lt;br /&gt;
&lt;br /&gt;
*x - (float) X value for the new [[GSDP:GAM100/CProcessing/Vec2|Vec2]].&lt;br /&gt;
*y - (float) Y value for the new [[GSDP:GAM100/CProcessing/Vec2|Vec2]].&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang='c'&amp;gt;&lt;br /&gt;
Vec2 random_v;&lt;br /&gt;
&lt;br /&gt;
void init()&lt;br /&gt;
{&lt;br /&gt;
  textFont(defaultFont, 30.0f);&lt;br /&gt;
  fill(color(0, 0, 0, 255));&lt;br /&gt;
&lt;br /&gt;
  random_v = vec2_set(randomRangeFloat(0, 50), randomRangeFloat(0, 50));&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void update()&lt;br /&gt;
{&lt;br /&gt;
  background(color(255, 255, 255, 255));&lt;br /&gt;
&lt;br /&gt;
  // Print out the random vector&lt;br /&gt;
  text(&amp;quot;Random: &amp;quot;, 0, 30);&lt;br /&gt;
  char matrix[128] = { 0 };&lt;br /&gt;
  sprintf_s(matrix, 128, &amp;quot;[%.0f]\n[%.0f]\n&amp;quot;,&lt;br /&gt;
    random_v.x, random_v.y);&lt;br /&gt;
  textBox(matrix, 175, 30, 200);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Related ====                            &lt;br /&gt;
* [[GSDP:GAM100/CProcessing                        |Main Page                ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/Vec2                   |Vec2                     ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/vec2()                 |vec2()                   ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/vec2_zero()            |vec2_zero()              ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/vec2_set()             |vec2_set()               ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/vec2_neg()             |vec2_neg()               ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/vec2_add()             |vec2_add()               ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/vec2_sub()             |vec2_sub()               ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/vec2_norm()            |vec2_norm()              ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/vec2_scale()           |vec2_scale()             ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/vec2_length()          |vec2_length()            ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/vec2_distance()        |vec2_distance()          ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/vec2_dot()             |vec2_dot()               ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/vec2_cross()           |vec2_cross()             ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/vec2_angle()           |vec2_angle()             ]]&lt;/div&gt;</summary>
		<author><name>&gt;Zachary.logsdon</name></author>
	</entry>
</feed>