<?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%2Fmat3%28%29</id>
	<title>GSDP:GAM100/CProcessing/mat3() - 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%2Fmat3%28%29"/>
	<link rel="alternate" type="text/html" href="https://inside.digipen.edu/index.php?title=GSDP:GAM100/CProcessing/mat3()&amp;action=history"/>
	<updated>2026-04-05T23:53:27Z</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/mat3()&amp;diff=59477&amp;oldid=prev</id>
		<title>&gt;Zachary.logsdon: New page: {{GSDP:GAM100API.css}} = mat3() = == Description == Create a Mat3 default matrix. This is the same as the Mat3 identity ma...</title>
		<link rel="alternate" type="text/html" href="https://inside.digipen.edu/index.php?title=GSDP:GAM100/CProcessing/mat3()&amp;diff=59477&amp;oldid=prev"/>
		<updated>2019-06-26T19:01:47Z</updated>

		<summary type="html">&lt;p&gt;New page: {{GSDP:GAM100API.css}} = mat3() = == Description == Create a &lt;a href=&quot;/index.php?title=GSDP:GAM100/CProcessing/Mat3&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;GSDP:GAM100/CProcessing/Mat3 (page does not exist)&quot;&gt;Mat3&lt;/a&gt; default matrix. This is the same as the &lt;a href=&quot;/index.php?title=GSDP:GAM100/CProcessing/Mat3&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;GSDP:GAM100/CProcessing/Mat3 (page does not exist)&quot;&gt;Mat3&lt;/a&gt; identity ma...&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;
= mat3() =&lt;br /&gt;
== Description ==&lt;br /&gt;
Create a [[GSDP:GAM100/CProcessing/Mat3|Mat3]] default matrix. This is the same as the [[GSDP:GAM100/CProcessing/Mat3|Mat3]] identity matrix that you get from calling [[GSDP:GAM100/CProcessing/mat3_identity()|mat3_identity()]].&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang='c'&amp;gt;&lt;br /&gt;
Mat3 default_m;&lt;br /&gt;
Mat3 identity_m;&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;
  default_m = mat3();&lt;br /&gt;
  identity_m = mat3_identity();&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 default matrix&lt;br /&gt;
  text(&amp;quot;Default: &amp;quot;, 0, 30);&lt;br /&gt;
  char matrix[128] = {0};&lt;br /&gt;
  sprintf_s(matrix, 128,&amp;quot;[%.0f, %.0f, %.0f]\n[%.0f, %.0f, %.0f]\n[%.0f, %.0f, %.0f]&amp;quot;,&lt;br /&gt;
    default_m.m00, default_m.m01, default_m.m02,&lt;br /&gt;
    default_m.m10, default_m.m11, default_m.m12,&lt;br /&gt;
    default_m.m20, default_m.m21, default_m.m22);&lt;br /&gt;
  textBox(matrix, 175, 30, 200);&lt;br /&gt;
&lt;br /&gt;
  // Print out the identity matrix&lt;br /&gt;
  text(&amp;quot;Identity: &amp;quot;, 0, 150);&lt;br /&gt;
  sprintf_s(matrix, 128, &amp;quot;[%.0f, %.0f, %.0f]\n[%.0f, %.0f, %.0f]\n[%.0f, %.0f, %.0f]&amp;quot;,&lt;br /&gt;
    identity_m.m00, identity_m.m01, identity_m.m02,&lt;br /&gt;
    identity_m.m10, identity_m.m11, identity_m.m12,&lt;br /&gt;
    identity_m.m20, identity_m.m21, identity_m.m22);&lt;br /&gt;
  textBox(matrix, 175, 150, 200);&lt;br /&gt;
&lt;br /&gt;
  text(&amp;quot;They are the same!&amp;quot;, 0, 300);&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/Mat3                   |Mat3                     ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/mat3()                 |mat3()                   ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/mat3_identity()        |mat3_identity()          ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/mat3_set()             |mat3_set()               ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/mat3_from_vector()     |mat3_from_vector()       ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/mat3_scale()           |mat3_scale()             ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/mat3_translate()       |mat3_translate()         ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/mat3_rotate()          |mat3_rotate()            ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/mat3_rotate_rad()      |mat3_rotate_rad()        ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/mat3_transpose()       |mat3_transpose()         ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/mat3_inverse()         |mat3_inverse()           ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/mat3_concat()          |mat3_concat()            ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/mat3_mult_vec2()       |mat3_mult_vec2()         ]]&lt;/div&gt;</summary>
		<author><name>&gt;Zachary.logsdon</name></author>
	</entry>
</feed>