<?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%2FCP_Vector_Zero%28%29</id>
	<title>GSDP:GAM100/CProcessing/CP Vector Zero() - 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%2FCP_Vector_Zero%28%29"/>
	<link rel="alternate" type="text/html" href="https://inside.digipen.edu/index.php?title=GSDP:GAM100/CProcessing/CP_Vector_Zero()&amp;action=history"/>
	<updated>2026-04-05T21:45:34Z</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/CP_Vector_Zero()&amp;diff=61595&amp;oldid=prev</id>
		<title>&gt;Dow.zabolio: New page: {{GSDP:GAM100API.css}} =CP_Vector_Zero()= ==Description== Create a CP_Vector zero vector (both x and y set to zero).  ==Example== &lt;syntaxhighlight lang='c'&gt; CP_Vector default_v; CP_Vector ...</title>
		<link rel="alternate" type="text/html" href="https://inside.digipen.edu/index.php?title=GSDP:GAM100/CProcessing/CP_Vector_Zero()&amp;diff=61595&amp;oldid=prev"/>
		<updated>2020-10-05T01:51:17Z</updated>

		<summary type="html">&lt;p&gt;New page: {{GSDP:GAM100API.css}} =CP_Vector_Zero()= ==Description== Create a CP_Vector zero vector (both x and y set to zero).  ==Example== &amp;lt;syntaxhighlight lang=&amp;#039;c&amp;#039;&amp;gt; CP_Vector default_v; CP_Vector ...&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;
=CP_Vector_Zero()=&lt;br /&gt;
==Description==&lt;br /&gt;
Create a CP_Vector zero vector (both x and y set to zero).&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang='c'&amp;gt;&lt;br /&gt;
CP_Vector default_v;&lt;br /&gt;
CP_Vector zero_v;&lt;br /&gt;
&lt;br /&gt;
void init()&lt;br /&gt;
{&lt;br /&gt;
  CP_Font_Set(CP_Font_GetDefault());&lt;br /&gt;
  CP_Settings_Fill(CP_Color_Create(0, 0, 0, 255));&lt;br /&gt;
&lt;br /&gt;
  zero_v = CP_Vector_Zero();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void update()&lt;br /&gt;
{&lt;br /&gt;
  CP_Settings_Background(CP_Color_Create(255, 255, 255, 255));&lt;br /&gt;
&lt;br /&gt;
  // Print out the zero vector&lt;br /&gt;
  CP_Font_DrawText(&amp;quot;Zero: &amp;quot;, 0, 150);&lt;br /&gt;
  sprintf_s(matrix, 128, &amp;quot;[%.0f]\n[%.0f]\n&amp;quot;,&lt;br /&gt;
    zero_v.x, zero_v.y);&lt;br /&gt;
  CP_Font_DrawTextBox(matrix, 175, 150, 200);&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/CP_Vector                         |CP_Vector                         ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/CP_Settings_Fill()                |CP_Settings_Fill()                ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/CP_Settings_Background()          |CP_Settings_Background()          ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/CP_Font_Set()                     |CP_Font_Set()                     ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/CP_Font_GetDefault                |CP_Font_GetDefault()              ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/CP_Font_DrawText                  |CP_Font_GetDrawText()             ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/CP_Font_DrawTextBox               |CP_Font_GetDrawTextBox()          ]]&lt;/div&gt;</summary>
		<author><name>&gt;Dow.zabolio</name></author>
	</entry>
</feed>