<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.crumbledworld.com/index.php?action=history&amp;feed=atom&amp;title=Vec2i</id>
	<title>Vec2i - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.crumbledworld.com/index.php?action=history&amp;feed=atom&amp;title=Vec2i"/>
	<link rel="alternate" type="text/html" href="https://wiki.crumbledworld.com/index.php?title=Vec2i&amp;action=history"/>
	<updated>2026-04-22T00:29:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.4</generator>
	<entry>
		<id>https://wiki.crumbledworld.com/index.php?title=Vec2i&amp;diff=176&amp;oldid=prev</id>
		<title>Anders: /* Constructor */</title>
		<link rel="alternate" type="text/html" href="https://wiki.crumbledworld.com/index.php?title=Vec2i&amp;diff=176&amp;oldid=prev"/>
		<updated>2025-08-03T12:19:30Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Constructor&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&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-GB&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 12:19, 3 August 2025&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-l24&quot;&gt;Line 24:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 24:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;|-&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;|Vec2i(float x, float y)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;|Vec2i(float x, float y)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|Vec2i(float xy)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;|&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;|&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;|-&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff:1.41:old-51:rev-176:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Anders</name></author>
	</entry>
	<entry>
		<id>https://wiki.crumbledworld.com/index.php?title=Vec2i&amp;diff=51&amp;oldid=prev</id>
		<title>Anders: Created page with &quot;{{:Vec2iExampleCode}}  ==Members== {| class=&quot;wikitable&quot;  !|type !|variable !|description |- |float |x | |- |float |y | |- |}  ==Constructor== {| class=&quot;wikitable&quot; !|function !|description |- |Vec2i(float x, float y) | |- |Vec2i(Vec2i vactor) | |- |Vec2i() | |- |}  ==Functions== {| class=&quot;wikitable&quot; !|return !|function !|description |- |float |dot() |Returns the dot product of this vec with itself. |- |float |dot(Vec2i v...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.crumbledworld.com/index.php?title=Vec2i&amp;diff=51&amp;oldid=prev"/>
		<updated>2025-07-05T13:38:48Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{:Vec2iExampleCode}}  ==Members== {| class=&amp;quot;wikitable&amp;quot;  !|type !|variable !|description |- |float |x | |- |float |y | |- |}  ==Constructor== {| class=&amp;quot;wikitable&amp;quot; !|function !|description |- |Vec2i(float x, float y) | |- |Vec2i(&lt;a href=&quot;/index.php/Vec2i&quot; title=&quot;Vec2i&quot;&gt;Vec2i&lt;/a&gt; vactor) | |- |Vec2i() | |- |}  ==Functions== {| class=&amp;quot;wikitable&amp;quot; !|return !|function !|description |- |float |&lt;a href=&quot;/index.php?title=Vec2i:dot()&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Vec2i:dot() (page does not exist)&quot;&gt;dot&lt;/a&gt;() |Returns the dot product of this vec with itself. |- |float |&lt;a href=&quot;/index.php?title=Vec2i:dot(Vec2i_vector)&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Vec2i:dot(Vec2i vector) (page does not exist)&quot;&gt;dot&lt;/a&gt;(&lt;a href=&quot;/index.php/Vec2i&quot; title=&quot;Vec2i&quot;&gt;Vec2i&lt;/a&gt; v...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{:Vec2iExampleCode}}&lt;br /&gt;
&lt;br /&gt;
==Members==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
!|type&lt;br /&gt;
!|variable&lt;br /&gt;
!|description&lt;br /&gt;
|-&lt;br /&gt;
|float&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|float&lt;br /&gt;
|y&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Constructor==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!|function&lt;br /&gt;
!|description&lt;br /&gt;
|-&lt;br /&gt;
|Vec2i(float x, float y)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Vec2i([[Vec2i]] vactor)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Vec2i()&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Functions==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!|return&lt;br /&gt;
!|function&lt;br /&gt;
!|description&lt;br /&gt;
|-&lt;br /&gt;
|float&lt;br /&gt;
|[[Vec2i:dot()|dot]]()&lt;br /&gt;
|Returns the dot product of this vec with itself.&lt;br /&gt;
|-&lt;br /&gt;
|float&lt;br /&gt;
|[[Vec2i:dot(Vec2i vector)|dot]]([[Vec2i]] vector)&lt;br /&gt;
|Return the dot product of this with vector.&lt;br /&gt;
|-&lt;br /&gt;
|float&lt;br /&gt;
|[[Vec2i:length()|length]]()&lt;br /&gt;
|Returns the length of this vector.&lt;br /&gt;
|-&lt;br /&gt;
|float&lt;br /&gt;
|[[Vec2i:getXYDist()|getXYDist]]()&lt;br /&gt;
|Returns x + y.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Vec2i:negate()|negate]]()&lt;br /&gt;
|Negate the vector.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Vec2i:clear()|clear]]()&lt;br /&gt;
|Set vector to zero.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Vec2i:infinity()|infinity]]()&lt;br /&gt;
|Set vector to infinity.&lt;br /&gt;
|-&lt;br /&gt;
|float&lt;br /&gt;
|[[Vec2i:normalize()|normalize]]()&lt;br /&gt;
|Normalize the vector and return the old length.&lt;br /&gt;
|-&lt;br /&gt;
|[[Vec2i]]&lt;br /&gt;
|[[Vec2i:normalizeV()|normalizeV]]()&lt;br /&gt;
|Return a copy and normalize the return vec.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Vec2i:interPolate(Vec2i vector1, Vec2ivector2, float weight)|interPolate]]([[Vec2i]] vector1, [[Vec2i]] vector2, float weight)&lt;br /&gt;
|Inter polate a vector bettwen two values. weight 0 returns vector1 and at weight 1 vector2 is returned&lt;br /&gt;
|-&lt;br /&gt;
|[[Vec2i]]&lt;br /&gt;
|[[Vec2i:interPolateV(Vec2i vector1, Vec2i vector2, float weight)|interPolateV]]([[Vec2i]] vector1, [[Vec2i]] vector2, float weight)&lt;br /&gt;
|Returns a Inter polate a vector bettwen two values. weight 0 returns vector1 and at weight 1 vector2 is returned&lt;br /&gt;
Return (vector1 * weight) + (vector2 * (1-weight));&lt;br /&gt;
|-&lt;br /&gt;
|bool&lt;br /&gt;
|[[Vec2i:isZero()|isZero]]()&lt;br /&gt;
|Returns true when vector length is zero&lt;br /&gt;
|-&lt;br /&gt;
|bool&lt;br /&gt;
|[[Vec2i:isInfinity()|isInfinity]]()&lt;br /&gt;
|Returns true when vetor length is infinity&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Vec2i:minimize(Vec2i vec)|minimize]]([[Vec2i]] vector)&lt;br /&gt;
|Keep the minimum x and y value from this vector and vec&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Vec2i:maximize(Vec2i vec)|maximize]]([[Vec2i]] vector)&lt;br /&gt;
|Keep the maximum x and y value from this vector and vec&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Operators==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
!|return&lt;br /&gt;
!|function&lt;br /&gt;
!|description&lt;br /&gt;
|-&lt;br /&gt;
|[[Vec2i]]&lt;br /&gt;
|[[Vec2i]] + [[Vec2i]]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|[[Vec2i]]&lt;br /&gt;
|[[Vec2i]] - [[Vec2i]]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|[[Vec2i]]&lt;br /&gt;
|[[Vec2i]] * float&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|[[Vec2i]]&lt;br /&gt;
|[[Vec2i]] / float&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|bool&lt;br /&gt;
|[[Vec2i]] == float&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Anders</name></author>
	</entry>
</feed>